Skip to main content
DELETE
/
compute
/
instances
/
{id}
Delete Compute Instance
curl --request DELETE \
  --url https://api.fal.ai/v1/compute/instances/{id} \
  --header 'Authorization: <api-key>'
import requests

url = "https://api.fal.ai/v1/compute/instances/{id}"

headers = {"Authorization": "<api-key>"}

response = requests.delete(url, headers=headers)

print(response.text)
const options = {method: 'DELETE', headers: {Authorization: '<api-key>'}};

fetch('https://api.fal.ai/v1/compute/instances/{id}', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "error": {
    "type": "authorization_error",
    "message": "Authentication required"
  }
}
{
  "error": {
    "type": "authorization_error",
    "message": "Access denied"
  }
}
{
  "error": {
    "type": "not_found",
    "message": "Resource not found"
  }
}
{
  "error": {
    "type": "rate_limited",
    "message": "Rate limit exceeded"
  }
}
{
  "error": {
    "type": "server_error",
    "message": "An unexpected error occurred"
  }
}

Authorizations

Authorization
string
header
required

Admin API key must be prefixed with "Key ", e.g. Authorization: Key YOUR_ADMIN_API_KEY

Path Parameters

id
string
required

Unique identifier for the compute instance

Minimum string length: 1
Example:

"inst_abc123xyz"

Response

Compute instance deleted successfully