Skip to content

Destroy a server

DELETE /v1/servers/{serverId}

Destroys the server and every site on it, with their files and databases, and the server's snapshots. Rabbitflare's own copies of it (takenBy: "rabbitflare" in its list of snapshots and backups) are deleted for good about a week after the server is deleted. Its billing stops. This can't be undone.

Answers 202 with status: "deleting" while the server is removed (usually a minute or two; GET /servers/{serverId} then answers 404), or 200 with status: "deleted" when the server was never paid for and is removed at once.

A server of your own is disconnected instead: it keeps running at your provider with its sites, and Rabbitflare's access to it is removed.

Refused while a site on the server is being copied (staging or cloning).

Scopes

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

servers:delete
Delete servers. Destroy servers and every site on them. This can't be undone.

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.

Example request

curl -X DELETE "https://api.rabbitflare.com/v1/servers/3f6c1a2b-8d4e-4b7a-9c2d-1e5f7a8b9c0d" \
  -H "Authorization: Bearer $RABBITFLARE_TOKEN"

Response

202 Accepted Returns the Server object in data. It can also answer 200 OK.

The Server object's fields 60 fields
FieldType and description
id

string

The server's id.

name

string

The server's name, as shown in the panel.

status

string

pending_payment: waiting for its first payment. provisioning: being set up (see stage). active: running. off: powered off. suspended: switched off for an unpaid bill. failed: setup failed (see lastError). deleting: being destroyed. deleted: destroyed.

Known values: pending_paymentprovisioningactiveoffsuspendedfaileddeletingdeleted More can appear.

stage

string

How far setup has got: queued, creating, preflight (a server of your own is being checked), booting, packages, database, security, verifying (connecting to Rabbitflare), then complete, or failed.

Known values: queuedcreatingpreflightbootingpackagesdatabasesecurityverifyingcompletefailed More can appear.

pendingAction

string or null

A change in progress on the server (power_on, power_off, reboot, resize, snapshot, restore, destroy). Another change waits until it's done (409 busy). Null when there's none.

Known values: power_onpower_offrebootresizesnapshotrestoredestroy More can appear.

cloud

string

Where the server runs: digitalocean, vultr, hetzner, linode, gcp (Google Cloud), edge (Amazon EC2), or custom (a server of your own).

Known values: digitaloceanvultrhetznerlinodegcpedgecustom More can appear.

region

string

The location's id on its cloud, like fra1 (Frankfurt). own for a server of your own.

planId

string

The plan's id (see the plans of each cloud). own for a server of your own.

priceMonthlyCents

integer

What this server is billed each month, in US cents, before any offer: during a sale an invoice can be lower, never higher. It stays as bought when plan prices change.

currency

string Always "usd"

Always usd: amounts are in US cents.

ipv4

string or null

The server's public IPv4 address. Null until it has one.

ipv6

string or null

The server's public IPv6 address. Null when it has none.

phpVersion

string

The PHP version the server's sites run, like 8.3.

backupsEnabled

boolean

Whether the whole server is backed up automatically: by its cloud, or by Rabbitflare once it has moved to Rabbitflare's own backups (automaticBackupsBy says which). It stays true when the cloud's own backups are turned off for Rabbitflare's. false for Amazon EC2 and Google Cloud servers and servers of your own: their sites are backed up one by one.

automaticBackupsBy

string or null

Who takes the server's automatic backups: rabbitflare (Rabbitflare's own weekly backups; its cloud's are off), cloud (its cloud's automatic backups), or both while it moves from its cloud's to Rabbitflare's. Given in answers about one server (GET /servers/{serverId} and the changes made to one); null in the list of servers, and for servers without automatic backups (backupsEnabled: false).

Known values: rabbitflarecloudboth More can appear.

billing

object

How the server is paid for.

method

string or null

How the server is paid: card (cards and the wallet) or paypal. Null when it isn't billed on its own (a server of your own is covered by the Own servers plan).

Known values: cardpaypal More can appear.

status

string or null

The state of the server's monthly payment: active, past_due (a payment failed and is being retried), unpaid, canceled… Null before the first payment.

Known values: activetrialingpast_dueunpaidpausedcanceledincomplete_expiredcomplimentary More can appear.

currentPeriodEnd

string or null An ISO 8601 time, in UTC

When the period paid for ends (the next payment is due then). Null when not known.

pendingPlanId

string or null

The plan a resize is waiting to move to, while a PayPal approval is outstanding. Null otherwise.

scheduledDeletionAt

string or null An ISO 8601 time, in UTC

When the server will be destroyed if nothing changes (a suspended server, or a free trial that wasn't kept). Null otherwise.

trial

boolean

A free trial server that hasn't been kept (paid for) yet.

specs

object or null

Servers of your own: the machine as it reported itself. Null for servers bought from Rabbitflare (their plan says it all).

vcpus

integer

Processor cores.

memoryGb

number

Memory, in GB.

diskGb

number

Disk size, in GB.

os

string

The operating system, as the server reported it.

arch

string

The processor architecture, like x86_64 or aarch64.

provider

string or null

The hosting provider the machine was recognised as, when it was (like Amazon Web Services). Null otherwise.

siteCount

integer

Sites on the server (staging copies aren't counted).

dataTransfer

object or null

Amazon EC2 and Google Cloud servers: data transfer this month. Null on the other clouds, where it isn't billed by use.

period

string

The month counted, as YYYY-MM.

usedBytes

integer

Data the server sent this month so far (backups to Rabbitflare Backup in the server's own location don't count).

includedBytes

integer

What the server's plan includes this month.

extraCentsPerGb

integer

The price of each GB beyond what's included, in US cents.

currency

string Always "usd"

Always usd: amounts are in US cents.

measuredAt

string or null An ISO 8601 time, in UTC

When it was last measured (every hour). Null until the first time.

unpaidBill

boolean

A data transfer bill that includes this server couldn't be charged: the server stays off until it's paid (in the panel's Billing).

phpSecurity

object

Whether the server has every PHP security fix installed and running. Checked every few hours, and on demand.

state

string

current: every PHP security fix Ubuntu has released is installed and running. waiting: a fix is released but not installed yet (they install themselves each day when auto is true). restart: it's installed, but some PHP still runs the build from before it (restart PHP). unknown: see reason.

Known values: currentwaitingrestartunknown More can appear.

reason

string or null

Why the state is unknown: unchecked (no check has finished yet), failed (no check has worked yet), stale (the latest check is too old to go by) or lists (the server's list of security updates is old, so newer fixes may be missing from it). Null otherwise.

Known values: uncheckedfailedstalelists More can appear.

build

string or null

The installed PHP build, like 8.3.6-0ubuntu0.24.04.13. Null until the first check.

packages

integer

How many PHP packages are installed (PHP itself and its extensions).

fixes

array of objects

Security fixes released for PHP that aren't installed yet.

Show its 3 fields
FieldType and description
name

string

The package.

installed

string

The version installed now.

fixed

string

The version with the fix.

restart

array of strings

Who still runs the build from before an update: the server's PHP, or a site's address.

auto

boolean

Whether security fixes install themselves every day.

listsAt

string or null An ISO 8601 time, in UTC

When the server last downloaded the lists of updates. Null when it never has.

securityAt

string or null An ISO 8601 time, in UTC

When the list of security updates the server has was published. Null when it has none.

checkedAt

string or null An ISO 8601 time, in UTC

When the server was last checked. Null until the first check.

error

string or null

Why the latest check failed, when it failed after the last good one. Null otherwise.

security

object

The server's security (Imunify360). GET /servers/{serverId}/security has the rest.

status

string

Imunify360 on the server: off, installing (a few minutes), on, failed, or removing. On servers Rabbitflare creates with Intel or AMD processors and 2 GB of memory or more, it's turned on by itself once the server is ready, while the account's features.security is on.

Known values: offinstallingonfailedremoving More can appear.

available

boolean

Whether the server can run Imunify360 and it's open to the account. GET /servers/{serverId}/security says why not.

lastError

string or null

Why the last setup or change failed. Null when nothing failed.

readyAt

string or null An ISO 8601 time, in UTC

When the server finished setting up (a server of your own: when it connected). Null until then.

createdAt

string An ISO 8601 time, in UTC

When the server was created.

updatedAt

string An ISO 8601 time, in UTC

When the server last changed.

Example response

202 Accepted
{
  "data": {
    "id": "3f6c1a2b-8d4e-4b7a-9c2d-1e5f7a8b9c0d",
    "name": "Production",
    "status": "deleting",
    "stage": "complete",
    "pendingAction": "destroy",
    "cloud": "digitalocean",
    "region": "fra1",
    "planId": "business",
    "priceMonthlyCents": 5200,
    "currency": "usd",
    "ipv4": "203.0.113.10",
    "ipv6": "2001:db8::10",
    "phpVersion": "8.3",
    "backupsEnabled": true,
    "automaticBackupsBy": "rabbitflare",
    "billing": {
      "method": "card",
      "status": "canceled",
      "currentPeriodEnd": "2026-12-18T08:46:49.000Z"
    },
    "pendingPlanId": null,
    "scheduledDeletionAt": null,
    "trial": false,
    "specs": null,
    "siteCount": 2,
    "dataTransfer": null,
    "phpSecurity": {
      "state": "current",
      "reason": null,
      "build": "8.3.6-0ubuntu0.24.04.13",
      "packages": 14,
      "fixes": [],
      "restart": [],
      "auto": true,
      "listsAt": "2026-11-18T06:12:04.000Z",
      "securityAt": "2026-11-17T21:30:00.000Z",
      "checkedAt": "2026-11-18T07:00:31.000Z",
      "error": null
    },
    "security": {
      "status": "on",
      "available": true
    },
    "lastError": null,
    "readyAt": "2026-11-18T08:51:12.000Z",
    "createdAt": "2026-11-18T08:46:49.000Z",
    "updatedAt": "2026-11-18T10:15:02.000Z"
  }
}

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 staging_busy

A staging operation is running on this site, or on a site of this server.

Wait until it finishes (activeRun in GET /sites/{siteId}/staging is null again), or cancel it, then try again.

409 clone_busy

A clone of this site, or of a site on this server, is being made.

Wait until the clone finishes (or cancel it), then try again.

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