---
title: Empty a bucket
description: Deletes every object in the bucket.
doc_version: 0.1.0-preview
last_updated: 2026-09-14
---

# Empty a bucket

`POST /v1/workspaces/{workspaceId}/buckets/{bucketId}/empty`

Deletes every object in the bucket. Send the exact bucket name as confirmName. Objects under retention stay, and the call returns object_locked with their keys. 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.

## Request body

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

## Example request

```bash
curl \
  --url "https://g4.beta.graphon.ai/v1/workspaces/wspQ7WsH2Np5L/buckets/bktA1b2C3d4E5/empty" \
  --header "Authorization: Bearer $GRAPHON_API_KEY" \
  --header "Content-Type: application/json" \
  --data '{"confirmName":"support-tickets"}'
```

## CLI

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

## Sitemap

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