Skip to main content

Delete File

This request deletes a file, targeted by secure ID.

delete /storage/files/{file_sid}

Sample

A sample DELETE request to delete a file, targeted by secure ID:

curl -X DELETE \
'https://api.carrierx.com/core/v2/storage/files/f6070be2-9abd-4726-870c-c86c9aac5c7e' \
-H 'Authorization: Bearer 5ebc03d6-8b2b-44ad-bf65-72d4f1491dda'

Response

204 status code with an empty body.

Required Scopes

To delete a File object, the partner must have one of the following scopes enabled:

  • storage.manage
  • storage.delete

Path Arguments

ParameterData TypeDescription
file_sid requiredstringThe secure ID of the file to be removed.