Skip to main content
DELETE
Delete a file

Authorizations

X-Public-Key
string
header
required

Public half of the company API key. Format: pk_ followed by 64 hexadecimal characters.

X-Secret-Key
string
header
required

Secret half of the company API key. Format: sk_ followed by 64 hexadecimal characters. Stored as a hash server-side and shown only at creation or rotation.

Path Parameters

fileId
string<uuid>
required

File identifier.

Query Parameters

trash
enum<string>
default:soft

Deletion mode. Defaults to soft.

Available options:
soft,
hard

Response

File deleted. data is an empty string.

status
integer
required
Example:

200

message
string
required
Example:

"File deleted"

data
string
required
Example:

""