Skip to main content
DELETE
/
resources
/
{resource_id}
Delete Resource
curl --request DELETE \
  --url https://supply-api.compute-index.com/resources/{resource_id} \
  --header 'Authorization: Bearer <token>'
{
  "resource_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "status": "<string>",
  "message": "<string>"
}
Destroy a provisioned resource. This terminates the instance on the vendor and marks it as deleted.

Asynchronous deletion

Deletion is asynchronous. The resource transitions through deleting before reaching deleted. Poll GET /resources/{resource_id} to confirm deletion.

Idempotency

Deleting an already-deleted resource returns 409 Conflict.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

resource_id
string<uuid>
required

Query Parameters

force
boolean
default:false

Response

Successful Response

Response from deleting a resource.

resource_id
string<uuid>
required
status
string
required
message
string
required