This support forum is no longer in use. Please use the Cloudinary Community at https://community.cloudinary.com/ to receive assistance from other members of the community and from Cloudinary's support team. For account-specific questions or if you believe that you've encountered a bug, please contact the Cloudinary team directly via the "submit a request" option on this support site.

Deleting image by PublicID using api (directly from browser)

Comments

3 comments

  • Official comment
    Avatar
    Maor Gariv

    Hi,

    Thanks for reaching out.

    It's possible to return a delete token for an uploaded image and use it to perform an unsigned delete (the token expires after 10 minutes).

    When using our widget and setting the Return delete token option to true from the upload preset, a small X sign will appear next to the image, allowing you to delete the image until the token expires.

    For example, here is a basic widget implementation with a preset the has the Return delete token option enabled - 

    https://jsfiddle.net/3r0gef3n/

    You'll see the X right nest to the thumbnail after the upload.

     

    Hope it helps!

    Comment actions Permalink
  • Avatar
    Guillem

    It doesn´t work the example.

    0
    Comment actions Permalink
  • Avatar
    Raya Straus

    Hi Guillem,

    Can you please elaborate on what is not working for you?

    0
    Comment actions Permalink

Post is closed for comments.