your_private_api_key:
Note the colon in the end.folder/to/delete/
​
folderPath
then a 404
response is returned. {"message" : "No folder found with folderPath folder/to/delete/","help" : "For support kindly contact us at support@imagekit.io .","reason" : "FOLDER_NOT_FOUND"}
In case of an error, you will get an error code along with the error message. On success, you will receive a 204
status code with an empty body.
Here is the example request to understand the API usage.
curl -X DELETE "https://api.imagekit.io/v1/folder/" \-H 'Content-Type: application/json' \-u your_private_key: -d '{"folderPath" : "folder/to/delete/"}'