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));