DELETE/services/{uuid}

Delete

Delete service by UUID. Needs a token with the write and deploy permissions.

5 parameters
uuidstringrequired
Service UUID
delete_configurationsbooleanoptional
Delete configurations.
Default:true
delete_volumesbooleanoptional
Delete volumes.
Default:true
docker_cleanupbooleanoptional
Run docker cleanup when the server disk usage is at or above its cleanup threshold. Skipped when a cleanup ran on the server in the last hour.
Default:true
delete_connected_networksbooleanoptional
Delete connected networks.
Default:true

6 status codes
200Delete a service by UUID
messagestringoptional
400Invalid token.
messagestringoptional
401Unauthenticated.
messagestringoptional
403The token needs the write and deploy permissions.
404Resource not found.
messagestringoptional
422Validation error.
errorsobjectoptional
messagestringoptional

Error handling

A 400 is returned: Invalid token. A 401 is returned: Unauthenticated. A 403 is returned: The token needs the write and deploy permissions. A 404 is returned: Resource not found. A 422 is returned: Validation error.