Skip to Content
Servers

Delete a given server

DELETE
/servers/{server_id}

If the server has been provisioned by Devopness, the server's instance will be removed from the cloud provider too.

Path Parameters

server_id*integer

The ID of the server.

Range1 <= value

Query Parameters

destroy_server_disks?boolean

Indicates whether disks associated with a cloud server should be deleted after the server is destroyed

Header Parameters

Accept*string

application/json

Authorization*string

Bearer {{access_token}}

Content-Type*string

application/json

Response Body

No Content

Example Request
curl -X DELETE 'https://api.devopness.com/servers/123?destroy_server_disks=true' \  -H 'Accept: application/json' \  -H 'Authorization: Bearer <your_api_token>' \  -H 'Content-Type: application/json'
Example Response
Empty