Skip to main content
DELETE
Removes a document from a project.
  • For a document attached to the project itself, the document is deleted.
  • For a folder document listed for the project (its folderId is set), the folder document stops applying to this project only. The folder keeps the document, and the folder’s other projects keep using it. To remove it from every project in the folder, use Remove Folder Document instead.
Orders created before the removal keep the guidance they were already processed with. The removal affects work that runs after it.

Authorizations

This endpoint requires API key authentication. Include your API key in the request header:
  • Header name: X-Api-Key
  • Header value: Your API key from the Ollang dashboard
  • Format: X-Api-Key: your-api-key-here
The examples read the key from the OLLANG_API_KEY environment variable; set it before running them. The project must belong to the API key’s account; other projects return 404. The API key user also needs write access, the same as for folder documents: the account owner, team-manager or order-creator role, or project manager of the project’s folder. Other keys, such as view-only users, receive a 403.

Path Parameters

string
required
The unique identifier of the project the document belongs to.
string
required
The unique identifier of the project document. Retrieve document IDs with List Project Documents.

Response

Returns an empty body on success.