---
title: "Move a space to trash"
method: DELETE
path: "/spaces/{spaceId}"
tags: ["Spaces"]
---

# Move a space to trash

`DELETE /spaces/{spaceId}`

## Request

- Base URL: `https://api.mockflow.com/v1`
- URL: `https://api.mockflow.com/v1/spaces/{spaceId}`
- Auth: HTTP bearer

The space and every board in it go to the trash for 30 days, as in the app. Only the owning
workspace can do this. Basic has no trash, so a Basic space with boards in it answers 402.

## Response `204`

Trashed.

## Other responses

- `402`: The workspace plan does not allow this, or AI credits are exhausted.
- `429`: Too many requests.

---

[API](https://skmtc.dev/mockflow/apis/mockflow-boards-api.md) - [All operations](https://skmtc.dev/mockflow/apis/mockflow-boards-api/llms.txt) - [OpenAPI document](https://skmtc.dev/mockflow/apis/mockflow-boards-api/revisions/1a890390518c?raw)
