Delete delivery document
DELETE/company/delivery/documents/:service_code/:document_id
Remove a specific document from a shipment, also deleting it from S3.
Objective
Allow companies to manage their shipment documentation by deleting files that are no longer needed or were uploaded by mistake.
Use Cases
- Delete documents uploaded by mistake
- Remove obsolete documentation
- Manage storage space
- Correct errors in attached documentation
Notes
- Removes the document from the
documentsarray - Deletes the physical file from S3
- Returns the complete delivery with the updated
documentsarray - Irreversible operation for the file in S3
Request
Responses
- 200
- 401
- 404
- 500
Document successfully deleted
Unauthorized.
Shipment not found.
Error deleting the document.