Delete Bucket
This endpoint deletes a bucket and all its resources including:
- S3 objects and blobs
- Running Ray jobs (cancels active batch processing jobs)
- Batch processing artifacts
- Upload files
- Unique key lookups
- MongoDB metadata
The deletion is performed asynchronously via a background task. Returns immediately with a task_id that can be polled via GET /v1/tasks/.
Response:
task_id: Use this to poll deletion status via GET /v1/tasks/status: Initial status (PENDING)bucket_id: The bucket being deletedbucket_name: Name of the bucketobject_count: Number of objects that will be deleted
Polling: Poll GET /v1/tasks/ until status is COMPLETED or FAILED. Use exponential backoff (start 1s, max 30s).
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
Query Parameters
Response
Successful Response

