Delete a server with a refund
Deletes the server now for the given reason: gives back to the balance what the unused time is worth, then destroys it. The refund is worked out again at the moment the delete runs, the same way the quote is. The picked floating IPs and backups go with it; every other attached address is detached and stays reserved for the account. The server stays locked until the deletion is done.
Authorization
BearerToken AuthorizationBearer <token>
In: header
Path Parameters
server*integer
The server ID
Query Parameters
reason*string
Length
length <= 255hostname*string
The server's hostname, typed to confirm the deletion.
floating_ip_ids[]?array<integer>
backup_ids[]?array<integer>
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X DELETE "https://example.com/servers/0?reason=string&hostname=string""string"