Skip to main content

Remove

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

Endpoint​

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

Parameters​

  • :cluster (path parameter): The ID of the cluster containing the image.
  • :imageName (path parameter): The name or ID of the image to be removed.

Response​

The response confirms the successful removal of the Docker image.

Response Example​

{
"info": "Image {imageName} removed!"
}

Example​

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