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