Files
dashback/docs/api/routes/delivery/_id/file/_fileId.delete.md
2026-10-14 23:26:09 +02:00

950 B

DELETE /delivery/{id}/file/{fileId}

Protected. Requires a valid session cookie (credentials: 'include').

Delete delivery file attachment

Removes a file attachment from the delivery and deletes the underlying file.

Path parameters

Param Required Type Description
id yes integer Delivery ID
fileId yes integer File ID or attachment ID

Signals

On success, emits SSE signal: delivery (see GET /events).

Response 204

Attachment deleted

No content

Errors

Status Description
400 Invalid parameters or no company selected — {"error":"…"}
401 Unauthorized — {"error":"…"}
403 Not authorized — {"error":"…"}
404 Delivery or attachment not found — {"error":"…"}

Generated from @openapi JSDoc. Do not edit by hand — run npm run docs:api.