Skip to main content

Deleting image by PublicID using api (directly from browser)

Comments

3 comments

  • Official comment
    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!

  • Guillem

    It doesn´t work the example.

    0
  • Raya Straus

    Hi Guillem,

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

    0

Post is closed for comments.