curl --request DELETE \
--url https://api.sfcompute.com/v2/capacities/{id} \
--header 'Authorization: Bearer <token>'{
"error": {
"type": "authentication_error",
"message": "<string>"
}
}Delete a capacity. The capacity must have no active orders, future allocations, active nodes, deployments, or procurements. Remove all dependencies before deleting.
curl --request DELETE \
--url https://api.sfcompute.com/v2/capacities/{id} \
--header 'Authorization: Bearer <token>'{
"error": {
"type": "authentication_error",
"message": "<string>"
}
}Create an API token using sf tokens create or at https://sfcompute.com/account/api-keys.
A resource path like 'sfc:capacity:acme:prod:my-capacity' or an ID. Resource paths are human-readable but not stable - they change when resources are renamed or moved. IDs are stable and permanent.
(cap_[0-9a-zA-Z_-]{1,21})|(sfc:capacity:[a-zA-Z0-9._-]+(:[a-zA-Z0-9._-]+){1,3})"cap_k3R-nX9vLm7Qp2Yw5Jd8F"
Capacity deleted.