Remove
The /actions/:cluster/container/:containerName/remove endpoint of Dashium API allows you to remove a Docker container.
Endpointβ
- Path:
/actions/:cluster/container/:containerName/remove - Method:
DELETE
Parametersβ
:cluster(path parameter): The ID of the cluster containing the container.:containerName(path parameter): The name of the container to be removed.
Responseβ
The response confirms the successful removal of the Docker container.
Response Exampleβ
{
"info": "Container {containerName} removed!"
}
Exampleβ
fetch('http://your-api-url/actions/your-cluster/container/your-container/remove', {
method: 'DELETE'
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error(error));