Skip to main content
POST
/
v2
/
FileDelete
Delete a user file
curl --request POST \
  --url http://localhost:3000/v2/FileDelete \
  --header 'Content-Type: application/json' \
  --header 'X-Bunker-Token: <api-key>' \
  --data '
{
  "identity": "<string>",
  "fileuuid": "<string>",
  "request_metadata": {}
}
'
{
  "status": "ok",
  "token": "<string>"
}

Authorizations

X-Bunker-Token
string
header
required

API token for authentication

Body

application/json
mode
enum<string>
required

Mode of user identification

Available options:
login,
token,
email,
phone,
custom
identity
string
required

User identifier corresponding to the mode

fileuuid
string
required

Unique identifier of the file to delete

request_metadata
object

Additional metadata for the request

Response

200 - application/json

File deleted successfully

status
string
Example:

"ok"

token
string

User's unique token