---
title: "Move document to bin"
method: POST
path: "/hubs/{HubHashId}/projects/{ProjectId}/documents/move_to_bin"
tags: ["Document"]
---

# Move document to bin

`POST /hubs/{HubHashId}/projects/{ProjectId}/documents/move_to_bin`

Soft-delete a document.

## Path parameters

- `HubHashId` string, required
- `ProjectId` integer, required

## Request body

- FeaturesDocumentsMoveDocumentToBinMoveDocumentToBinCommandMoveDocumentToBinCommandBody
  - `documentIds` string[], nullable

## Response `200`

OK

- FeaturesDocumentsMoveDocumentToBinMoveDocumentToBinResponse
  - `movedToBinCount` integer

## Other responses

- `204` — The document was successfully moved to bin.
- `307` — According to the hub id, the request is at the wrong datacenter. Please retry with the URL in the "Location" header.
- `403` — You don't have access to the project.
- `404` — The project or the document doesn't exist.

---

[API](https://skmtc.dev/bimtrackapp/apis/newforma-konekt-document-control-api.md) · [All operations](https://skmtc.dev/bimtrackapp/apis/newforma-konekt-document-control-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/bimtrackapp/newforma-konekt-document-control-api/revisions/4671d430ce39/schema)
