curl --request DELETE \
--url https://storage.bunnycdn.com/{storageZoneName}/{path}/{fileName} \
--header 'AccessKey: <api-key>'Delete an object from the storage zone. In case the object is a directory all the data in it will be recursively deleted as well.
curl --request DELETE \
--url https://storage.bunnycdn.com/{storageZoneName}/{path}/{fileName} \
--header 'AccessKey: <api-key>'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.
The API AccessKey used for authentication.
The name of your storage zone where you are connecting to.
The directory path to your file. If this is the root of your storage zone, you can ignore this parameter.
The name of the file that you wish to delete.
Object was successfully deleted
Was this page helpful?