Is there a way to delete uploaded images using CldUploadWidget #221
-
In the CldUploadWidget component, we get the access to Cloudinary instance
Is it somehow possible to delete an uploaded asset using this cloudinary instance?
Or Is there a way to delete uploaded images using CldUploadWidget or any other components from next-cloudinary? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
@vikmehta unfortunately there's not currently a native way in Next Cloudinary to delete an asset you would likely need to set up an API Endpoint (or Server Action in Next.js 13 App Router) which makes a request to the Admin API to delete the asset you want https://cloudinary.com/documentation/admin_api#delete_resources |
Beta Was this translation helpful? Give feedback.
-
Hello, |
Beta Was this translation helpful? Give feedback.
@vikmehta unfortunately there's not currently a native way in Next Cloudinary to delete an asset
you would likely need to set up an API Endpoint (or Server Action in Next.js 13 App Router) which makes a request to the Admin API to delete the asset you want
https://cloudinary.com/documentation/admin_api#delete_resources