---
title: Delete a bucket
description: Deletes an empty bucket.
doc_version: 0.1.0-preview
last_updated: 2026-09-14
---

# Delete a bucket

`DELETE /v1/workspaces/{workspaceId}/buckets/{bucketId}`

Deletes an empty bucket. The bucket stays restorable until recoverableUntil, which the bucket policy softDeleteDays sets: 7 days by default, and 0 deletes at once. Then its name is free again and its storage is removed for good. Send the exact bucket name as confirmName. Role: editor or higher.

## Authentication

Send `Authorization: Bearer <GRAPHON_API_KEY>`. Read the key from the
GRAPHON_API_KEY environment variable. Never print it.

## Path parameters

- `workspaceId` (string) — The workspace id.
- `bucketId` (string) — The bucket id.

## Query parameters

- `confirmName` (string) — The exact current bucket name.

## Example request

```bash
curl --request DELETE \
  --url "https://storage.graphon.sh/v1/workspaces/wspq7ws2np5l8z4/buckets/bktA1b2C3d4E5?confirmName=support-tickets" \
  --header "Authorization: Bearer $GRAPHON_API_KEY"
```

## CLI

```bash
graphon buckets delete support-tickets --confirm-name support-tickets
```

## Sitemap

See the full [sitemap](/sitemap.md) for all pages.
