Skip to main content

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