Skip to main content

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 documents array
  • Deletes the physical file from S3
  • Returns the complete delivery with the updated documents array
  • Irreversible operation for the file in S3

Request

Responses

Document successfully deleted