Delete Document By Id

View as Markdown

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

domainstringRequired

Headers

x-fern-basepathstring or nullOptional

The basepath of the docs site that the document belongs to, e.g. /plants for a site served at docs.example.com/plants. Omit this for sites served at the root of the domain. Documents are only retrieved by Ask Fern on the site matching the domain and basepath they were created with.

Request

This endpoint expects an object.
document_idstringRequired
The unique identifier of the document to delete

Response

Successful Response
successboolean
Whether the documents was successfully deleted

Errors

422
Unprocessable Entity Error