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

Name
In
Type
Required
Description

bucketId

path

string

true

Unique identifier of the bucket

Example responses

200 Response

{
  "success": true
}

Responses

Status
Meaning
Description
Schema

200

Bucket deleted successfully

Inline

403

Insufficient permissions or bucket in use

Inline

404

Bucket or user not found

Inline

500

Failed to delete bucket

Inline

Response Schema

Status Code 200

Name
Type
Required
Restrictions
Description

» success

boolean

false

none

Operation success status

Status Code 403

Name
Type
Required
Restrictions
Description

» success

boolean

false

none

none

» message

string

false

none

none

Status Code 404

Name
Type
Required
Restrictions
Description

» success

boolean

false

none

none

» message

string

false

none

none

Status Code 500

Name
Type
Required
Restrictions
Description

» 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?