Skip to content

Delete a snapshot

DELETE /v1/servers/{serverId}/snapshots/{snapshotId}

Deletes a snapshot. This can't be undone. Automatic backups can't be deleted, the cloud's or Rabbitflare's (they're replaced as new ones are taken), nor the one snapshot Linode keeps of a server (a new one replaces it). A Linode server on Rabbitflare's backups has Rabbitflare's snapshots instead (takenBy: "rabbitflare"), and each of those can be deleted.

Scopes

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

servers:write
Manage servers. Power, reboot, snapshots and restores, log settings, restarting PHP, server security (Imunify360), and connecting your own servers.

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
serverId Required

string

The server's id.

snapshotId Required

string

The snapshot's id, from the server's list of snapshots: a number on some clouds, a UUID on others.

Example request

curl -X DELETE "https://api.rabbitflare.com/v1/servers/3f6c1a2b-8d4e-4b7a-9c2d-1e5f7a8b9c0d/snapshots/171824639" \
  -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
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 not_supported

The server's cloud doesn't offer this (for example, whole-server snapshots on Amazon EC2 and Google Cloud), or the server's kind or size doesn't allow it (Imunify360 on a server of your own, or under 2 GB of memory).

Use what the cloud offers instead: for snapshots, site backups. Imunify360 needs a server Rabbitflare creates, with Intel or AMD processors and 2 GB or more (security.available says why not).

409 server_restoring

The server is being restored, and nothing else can change it or its sites until that's done.

Wait until the restore finishes (the server's pendingAction is null again), then try again. A restore that stopped partway keeps pendingAction: "restore", with the server's lastError set, until our team has checked the server.

Rate limit

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

Added on .

Popular

API docs