# Delete Document By Id DELETE https://fai.buildwithfern.com/document/{domain}/delete Content-Type: application/json Reference: https://buildwithfern.com/learn/docs/ai-features/ask-fern/api-reference/document/delete-document-by-id ## OpenAPI Specification ```yaml openapi: 3.1.1 info: title: Delete Document By Id version: endpoint_document.delete_document_by_id paths: /document/{domain}/delete: delete: operationId: delete-document-by-id summary: Delete Document By Id tags: - - subpackage_document parameters: - name: domain in: path required: true schema: type: string - name: Authorization in: header description: >- Bearer authentication of the form `Bearer `, where token is your auth token. required: true schema: type: string responses: '200': description: Successful Response content: application/json: schema: $ref: '#/components/schemas/DeleteDocumentResponse' '422': description: Validation Error content: {} requestBody: content: application/json: schema: $ref: '#/components/schemas/DeleteDocumentRequest' components: schemas: DeleteDocumentRequest: type: object properties: document_id: type: string description: The unique identifier of the document to delete required: - document_id DeleteDocumentResponse: type: object properties: success: type: boolean description: Whether the documents was successfully deleted required: - success ```