# Destroy
To delete the database.
# HTTP Request:
DELETE https://api.serveravatar.com/organizations/{organization}/servers/{server}/databases/{database}
# Curl Request example:
curl --request DELETE \
--url "https://api.serveravatar.com/organizations/5/servers/15/databases/48" \
--header 'content-type: application/json' \
--header 'Authorization: <YOUR API TOKEN>'
# Response:
# Database Delete
- 200 (Ok)
{
"message": "Database has been deleted successfully!"
}
# Organization Not Found
- 404 (Not Found)
{
"message":"Organization not found!"
}
# Server Not Found
- 404 (Not Found)
{
"message":"Server not found!"
}
# Database Not Found
- 404 (Not Found)
{
"message": "Database not found!"
}
# Server Error
- 500 (Internal Server Error)
{
"message": "Something went really wrong while deleting database!"
}