---
title: "Delete a space created through the API, with its scans and files"
method: DELETE
path: "/spaces/{id}"
---

# Delete a space created through the API, with its scans and files

`DELETE /spaces/{id}`

## Request

- Base URL: `https://api.spacecontext.app/v1`
- URL: `https://api.spacecontext.app/v1/spaces/{id}`
- Auth: HTTP bearer

Not possible while one of its scans is processing (409). App spaces are deleted in the app. Needs `scans:write`.

## Path parameters

- `id` string, required

## Response `204`

Deleted

## Other responses

- `401`: Error response
- `403`: Error response
- `404`: Error response
- `409`: Error response
- `429`: Too many requests. Retry after the number of seconds in `Retry-After`.

---

[API](https://skmtc.dev/spacecontext/apis/space-context-api.md) · [All operations](https://skmtc.dev/spacecontext/apis/space-context-api/llms.txt) · [OpenAPI document](https://skmtc.dev/spacecontext/apis/space-context-api/revisions/1dca940259b4?raw)
