---
title: Delete a workspace
description: Marks the workspace deleted and starts a seven-day recovery window.
doc_version: 0.1.0-preview
last_updated: 2026-09-14
---

# Delete a workspace

`DELETE /v1/workspaces/{workspaceId}`

Marks the workspace deleted and starts a seven-day recovery window. Requires the admin role. Every bucket must already be deleted. A restore keeps the members.

## 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.

## Example request

```bash
curl --request DELETE \
  --url "https://api.graphon.ai/v1/workspaces/wspq7ws2np5l8z4" \
  --header "Authorization: Bearer $GRAPHON_API_KEY"
```

## Example response

```json
{
  "id": "wspq7ws2np5l8z4",
  "name": "Ada Lovelace’s workspace",
  "revision": 1
}
```

## Sitemap

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