Closed jonathanmorales990 closed 4 years ago
I'm also having this issue. I'd like to know how we can replace an existing image with the new upload using public_id. I tried using the callback in cloudinary storage but failed
you can use normal cloudinary.v2.uploader.destroy(public_id);
you need cloudinary package to do that const = cloudinary = require("cloudinary")
The storage engine removes file in case of errors autmatically. If you want to manually remove files as needed use the suggestion by @zuber1077
How to remove a image?