Skip to main content
DELETE
/
{storageZoneName}
/
{path}
/
{fileName}
Delete File
curl --request DELETE \
  --url https://storage.bunnycdn.com/{storageZoneName}/{path}/{fileName} \
  --header 'AccessKey: <api-key>'

Authorizations

AccessKey
string
header
required

The storage zone password also doubles as your API key. You can find it in your storage zone details page in the bunny.net dashboard.

Headers

AccessKey
string
required

The API AccessKey used for authentication.

Path Parameters

storageZoneName
string
required

The name of your storage zone where you are connecting to.

path
string
required

The directory path to your file. If this is the root of your storage zone, you can ignore this parameter.

fileName
string
required

The name of the file that you wish to delete.

Response

Object was successfully deleted