API ReferenceBuckets
Delete Bucket
Delete a bucket and its contents
DELETE
/api/v1/buckets/{bucketId}Permanently deletes a bucket and all its associated files.
Parameters
| Name | Type | In | Required | Description |
|---|---|---|---|---|
bucketId | string | path | Yes | The bucket ID |
Request
const res = await fetch(
"https://app.limai.io/api/v1/buckets/bkt_abc123",
{
method: "DELETE",
headers: {
Authorization: "Bearer YOUR_API_TOKEN",
},
}
);Response
Response200
{
"success": true
}