# Destroy
To delete the database user. You can not retrieve the database user once you delete it.
# HTTP Request:
POST https://api.serveravatar.com/organizations/{organization}/servers/{server}/databases/{database}/database-users/delete
# Parameter:
Parameters | Required | Type | Description |
---|---|---|---|
ids | Yes | Array | Database user ids. |
# Curl Request Example:
curl --request POST \
--url "https://api.serveravatar.com/organizations/5/servers/15/databases/48/database-users/delete" \
--header 'content-type: application/json' \
--header 'accept: application/json' \
--header 'Authorization: <YOUR API TOKEN>' \
--data '{
"ids": [53]
}'
# Response:
# Database User Delete
- 200 (Ok)
{
"message": "Database user has been deleted successfully!"
}
# Database User Not Found
- 404 (Not Found)
{
"message": "Database user not found!"
}
# Database Not Found
- 404 (Not Found)
{
"message": "Database not found!"
}
# Organization Not Found
- 404 (Not Found)
{
"message":"Organization not found!"
}
# Server Not Found
- 404 (Not Found)
{
"message":"Server not found!"
}
# Server Error
- 500 (Internal Server Error)
{
"message": "Something went really wrong!"
}