Skip to main content

Remove

The /actions/:cluster/remove endpoint of the Dashium API allows you to remove a Docker cluster.

Endpoint​

  • Path: /actions/:cluster/remove
  • Method: DELETE

Parameters​

  • :cluster (path parameter): The ID of the cluster to remove.

Response​

The response confirms the successful removal of the Docker cluster.

Response Example​

{
"info": "Cluster {clusterID} removed!"
}

Example​

fetch('http://votre-url-api/actions/your-cluster/remove', {
method: 'DELETE'
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error(error));