# Delete

Delete the created backup and Backup data will be removed from your storage area.

# HTTP Request:

POST https://api.serveravatar.com/organizations/{organization}/backups/destroy

# Parameter:

Parameters Required Type Description
ids Yes Array Backup ids.

# Curl Request example:

curl --request POST \
  --url "https://api.serveravatar.com/organizations/5/backups/destroy" \
  --header 'content-type: application/json' \
  --header 'accept: application/json' \
  --header 'Authorization: <YOUR API TOKEN>' \
  --data '{
        "ids": [10]
    }'

# Response:

# Backup Delete:

  • 200 (Ok)
{
  "message": "Backup files successfully deleted from your cloud storage provider."
}

# Organization Not Found

  • 404 (Not Found)
{
    "message": "Organization not found!"
}

# Deletion Failed

  • 500 (Internal Server Error)
{
    "message": "Backup deletion process is failed!"
}

# Permission Error

  • 500 (Internal Server Error)
{
    "message": "You can not perform this action!"
}

# Not Complete

  • 500 (Internal Server Error)
{
    "message": "Backup not completed."
}

# Server Error

  • 500 (Internal Server Error)
{
    "message": "Something went really wrong!"
}
Last Updated: 3/1/2023, 3:30:12 PM