How to delete 'raw' resources?

Follow

Comments

2 comments

  • Avatar
    Rohit Kumar

    Suppose i want to delete this file
    res.cloudinary.com/dekmtxrqb/raw/upload/setixbbu9i03qnrczmbf.txt

    then what should be the exact payload for this ?

    \Cloudinary\Uploader::destroy('setixbbu9i03qnrczmbf.txt', array("resource_type" => "raw"));

    am right?

  • Avatar
    Maor Gariv

    Hi Rohit,

    Thanks for reaching out.

    Yes:) This is correct.
    The default `resource_type` is `image` so when destroying `video` or `raw` files, you should set the appropriate `resource_type`.

Please sign in to leave a comment.