Not Found : When trying to delete a file with cloudinary.uploader.destroy()
cloudinary.uploader.destroy(fileUrl, function(error, result) {
if (error) {
console.error(error);
} else {
console.log(result);
}
});
Allways returns me not Found But I can't figure why. Thank you for your answers
0
-
Hi Adrien,
Thanks for reaching out.
Would you be able to share the public id of a resource that was not deleted? I suspect that there is an error in your syntax. Looking into the logs on our end, I see you attempting to make destroy calls while passing in the entire URL to the destroy method. Similarly, I see other attempts where you are passing the version component along with the public id. So I would recommend that you double-check your code to be sure that you are passing the correct value for the public id identifier.
Let me know if you have any questions.
Kind Regards,
Tia
0
Post is closed for comments.
Comments
1 comment