---
title: "POST /api/v1/file-views/{spaceId}/delete"
method: POST
path: "/api/v1/file-views/{spaceId}/delete"
---

# POST /api/v1/file-views/{spaceId}/delete

`POST /api/v1/file-views/{spaceId}/delete`

## Request

- Base URL: `https://falconer.com` (the document declares no server; this is the origin it was published from)
- URL: `https://falconer.com/api/v1/file-views/{spaceId}/delete`
- Auth: none declared

## Path parameters

- `spaceId` integer, required: Space id, from GET /spaces.

## Headers

- `x-organization-id` string: Required when using OAuth bearer tokens.

## Request body

- DeleteSpaceFileRequest
  - `path` string: Path relative to the Space root, such as guides/setup.mdx.
  - `fileNodeId` string
  - `confirmedArchive` boolean: Whether you expect pages to be archived (synced Spaces) rather than deleted; a mismatch answers 409.

## Response `200`

Deleted

- DeletedSpaceFile
  - `deleted` integer, required
  - `archivedDocumentIds` string[], required
  - `pendingRemovalDocumentIds` string[], required: Synced pages that stay until a push removes them from GitHub.

## Other responses

- `400`: Bad request, such as a missing parent folder
- `403`: Permission is missing
- `404`: Space not found, or file not found
- `409`: confirmedArchive does not match what the delete would do

---

[API](https://skmtc.dev/falconer/apis/falconer-public-api.md) · [All operations](https://skmtc.dev/falconer/apis/falconer-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/falconer/apis/falconer-public-api/revisions/c00420511526?raw)
