---
title: Delete objects
description: Deletes up to 1000 objects in one call, and returns one result per key.
doc_version: 0.1.0-preview
last_updated: 2026-09-14
---

# Delete objects

`POST /v1/workspaces/{workspaceId}/buckets/{bucketId}/object-actions`

Deletes up to 1000 objects in one call, and returns one result per key. A key that is missing or under retention goes to errors, and the other keys are still deleted. Each deleted version stays recoverable for the bucket recovery window. 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

- `action` (string) — The action to apply. One of: delete.
- `keys` (string[]) — The object keys, 1 to 1000. A repeated key counts once.

## Example request

```bash
curl \
  --url "https://storage.beta.graphon.sh/v1/workspaces/wspq7ws2np5l8z4/buckets/bktA1b2C3d4E5/object-actions" \
  --header "Authorization: Bearer $GRAPHON_API_KEY" \
  --header "Content-Type: application/json" \
  --data '{"action":"delete","keys":["incidents/a.json","incidents/b.json"]}'
```

## Sitemap

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