# Deleting a document The steps below explain how to delete a document from the Spotnana platform. | Step | Name | Endpoint | Details | | --- | --- | --- | --- | | 1. | [List documents](/openapi/documentapi/documents/listdocuments) | `/v2/documents` | List all the uploaded documents for a specific `entityType` and `entityId`. **URL path requires:** The `entityType` (e.g., `PNR` if you're retrieving documents for a booking) and the `entityId` (e.g., the PNR ID of the booking). **Response will contain:** The list of documents uploaded for the entity along with the `documentId` assigned to each document. **Other APIs will use:** `documentId` of the document that you need to delete. | | 1. | [Delete a document](/openapi/documentapi/documents/deletedocument) | `/v2/documents/{documentId}` | Delete a document. **URL path requires:** The `documentId` from step 1. You'll receive a `200 OK` response after a successful deletion. |