We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Public Id: 65b6a4feda9bcf834d99ae28
// Delete the file from Cloudinary const result = await cloudinary.uploader.destroy(publicId, { resource_type: "raw" }) console.log("Cloudinary delete result:", result);
I am unable to delete file from cloudinary, it gives me result not found error.
The text was updated successfully, but these errors were encountered:
@ehtshamaziz with raw files, the file extension is part of the public_id so you need to include it in your API call.
e.g. const result = await cloudinary.uploader.destroy("65b6a4feda9bcf834d99ae28.json", { resource_type: "raw" }) console.log("Cloudinary delete result:", result);
const result = await cloudinary.uploader.destroy("65b6a4feda9bcf834d99ae28.json", { resource_type: "raw" }) console.log("Cloudinary delete result:", result);
hope this helps.
Sorry, something went wrong.
@ehtshamaziz with raw files, the file extension is part of the public_id so you need to include it in your API call. e.g. const result = await cloudinary.uploader.destroy("65b6a4feda9bcf834d99ae28.json", { resource_type: "raw" }) console.log("Cloudinary delete result:", result); hope this helps.
Thankyou, It worked.
No branches or pull requests
Public Id: 65b6a4feda9bcf834d99ae28
I am unable to delete file from cloudinary, it gives me result not found error.
The text was updated successfully, but these errors were encountered: