Delete server
Deletes a server in your account
DELETE api/servers/{server}
Required scopes:
Delete servers
Example request:
curl -X DELETE "https://ploi.io/api/servers/{server}" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response:
{
"data": {
"id": 1,
"status": "destroying",
"type": "server",
"name": "wandering-silence",
"ip_address": "192.168.56.101",
"php_version": 7.2,
"mysql_version": 5.7,
"sites_count": 0,
"monitoring": false,
"created_at": "2019-01-01 09:00:00"
}
}
Errors you can encounter:
Server is already being destroyed
{
"message": "The given data was invalid.",
"errors": [
"This server is already being destroyed"
],
"links": []
}