Removes a parcel (deletes the partial file; a delivered parcel stays in the warehouse)
DELETE
/files/{id}Requires: Cookie fret_session / Bearer
Path parameters
idstringrequiredNumeric id or parcel number (FR-0042)
Responses
204Deleted
Request
curl -X DELETE "http://localhost:8080/api/v1/files/42" \ -H "Authorization: Bearer $TOKEN"const response = await fetch('http://localhost:8080/api/v1/files/42', { method: 'DELETE', headers: { Authorization: 'Bearer <TOKEN>', },});console.log(response.status);import requests
response = requests.delete( "http://localhost:8080/api/v1/files/42", headers={ "Authorization": "Bearer <TOKEN>", },)response.raise_for_status()print(response.status_code)