Delete Cluster
This endpoint deletes a cluster and all its resources including:
- Running Ray jobs (cancels active jobs)
- Cluster triggers
- Execution history (clustering_results)
- S3 artifacts (parquet files, documents, members)
- Related tasks
- Clustering jobs
- MongoDB cluster metadata
- Output collections created by the cluster (by default)
By default, output collections created by the cluster are cascade-deleted
along with the cluster. Pass cascade_output_collections=false to preserve
them (useful when the cluster output documents were enriched / promoted
into user-managed data).
The deletion is performed synchronously and returns when complete.
Authorizations
Mixpeek API key, sent as Authorization: Bearer mxp_sk_.... Create one in Studio under Settings → API Keys, or with an admin key via POST /v1/organizations/users/{user_email}/api-keys. A missing header returns 403; an invalid or revoked key returns 401.
Namespace id (ns_...), not the namespace name. This scopes the request rather than authenticating it, and it is required on every operation marked x-mixpeek-namespace-scoped.
Path Parameters
Cluster ID
Query Parameters
When true (default), the cluster's output collections are deleted alongside the cluster. Set to false to preserve them.
Response
Successful Response

