Skip to content

Remove backup storage

DELETE /v1/backup-destinations/{destinationId}

Disconnects the storage. The backups in it stay there, but they can't be restored or downloaded through Rabbitflare any more, and they leave the sites' lists. Only storage no site backs up to (409 conflict: choose other storage for those sites first), and not while a backup to it runs. The answer is 204.

Storage belongs to the whole account, as in the panel, not to a server: a token limited to some servers sees and manages all of it too, with where it points (detail) and the count of sites on every server that back up to it (siteCount).

Scopes

The token needs this scope. Without it, the request is refused with insufficient_scope (see Scopes).

sites:files
Files and logins. File Manager, WordPress logins, cron jobs, backup downloads and backup storage. Full access to the sites' code and data.

Headers

FieldType and description
Idempotency-Key

string 1 to 255 characters

A key of your own for this request, like a UUID: letters, digits and _ - : . Send the request again with the same key (after a timeout, say) and it's done only once. Keys are kept for 24 hours (see Idempotency).

Path parameters

FieldType and description
destinationId Required

string

The storage's id.

Example request

curl -X DELETE "https://api.rabbitflare.com/v1/backup-destinations/8f9a0b1c-2d3e-4f4a-9b5c-6d7e8f9a0b12" \
  -H "Authorization: Bearer $RABBITFLARE_TOKEN"

Response

204 No Content The answer has no body.

Example response

204 No Content

No content: the answer has no body.

Errors

The errors this request can answer besides those every request can (a missing token, a missing scope, the rate limits). Each answer is an Error object (see Errors).

Status and codeWhen, and what to do
403 feature_unavailable

This product isn't open to the account.

Contact support if you'd like it opened.

404 not_found

The resource doesn't exist, or isn't this account's.

Check the id. Ids of other accounts' resources answer the same way.

409 conflict

This clashes with something that exists, or is already done (for example, a domain already connected to a site).

Read message; there may be nothing left to do.

Rate limit

Write requests: 30 a minute per token, 60 per account. More in Rate limits.

Added on .

Popular

API docs