Skip to main content
DELETE
Delete a customer upload
Required scope: orders:write. The request needs no idempotency key and is safe to retry. You can delete only a file that your account uploaded to this order, and only while the order still allows changes. Use the file’s can_delete value from the file list to decide whether to show a delete control. Read Files and inspections for the rules.

Authorizations

Authorization
string
header
required

OAuth 2.0 client credentials.

Scopes

orders:write

Check prices, upload files, and change customer orders.

Headers

X-Request-Id
string

A caller-supplied request identifier for support.

Required string length: 1 - 255

Path Parameters

order_id
string
required

The order identifier. Stable Bahn order identifier used in every order resource path.

Pattern: ^ord_[a-z0-9]+$
file_id
string
required

File to delete from this order. Stable identifier for an uploaded or published order file.

Pattern: ^file_[a-z0-9-]+$

Response

The file is deleted.