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