DELETE/servers/{uuid}

Delete

Delete server by UUID. With force or delete_from_provider, needs a token with the write and deploy permissions.

3 parameters
uuidstringrequired
UUID of the server.
forcebooleanoptional
Also delete all resources on the server. Needs the deploy permission.
Default:false
delete_from_providerbooleanoptional
Also delete the server from its cloud provider (Hetzner, Vultr or DigitalOcean). This cannot be undone. Needs the deploy permission.
Default:false

6 status codes
200Server deleted.
messagestringoptional
400Invalid token.
messagestringoptional
401Unauthenticated.
messagestringoptional
403The token needs the deploy permission to delete the resources or the cloud server.
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 deploy permission to delete the resources or the cloud server. A 404 is returned: Resource not found. A 422 is returned: Validation error.