delete__bucket_{bucketId}
DELETE /bucket/{bucketId}
Delete Bucket
Permanently delete a storage bucket. This operation is irreversible and will remove the bucket from the system.
Important Notes:
Buckets cannot be deleted if they are currently being used by any storage repositories
This endpoint respects workspace access controls. Users can only delete buckets within their accessible workspaces
Deletion is soft-delete (marked as deleted but not physically removed from database)
Organization bucket quota will be updated accordingly
TypeScript Client Library
public deleteStorageBucket = async (bucketId: string): Promise<ActionResponse> => {
return this.makeRequest<ActionResponse>(`bucket/${bucketId}`, 'DELETE', null);
};
Code Samples
# You can also use wget
curl -X DELETE https://backend.flashback.tech/bucket/{bucketId} \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
Parameters
bucketId
path
string
true
Unique identifier of the bucket
Example responses
200 Response
{
"success": true
}
Responses
Response Schema
Status Code 200
» success
boolean
false
none
Operation success status
Status Code 403
» success
boolean
false
none
none
» message
string
false
none
none
Status Code 404
» success
boolean
false
none
none
» message
string
false
none
none
Status Code 500
» success
boolean
false
none
none
» message
string
false
none
none
To perform this operation, you must be authenticated by means of one of the following methods: BearerAuth
Last updated
Was this helpful?