cloudex icon indicating copy to clipboard operation
cloudex copied to clipboard

Cloudex.delete/1 does not seem to delete asset

Open suprafly opened this issue 6 years ago • 2 comments

I am calling Cloudex.delete(public_id) and my asset is not deleted. Subsequent calls also return the same success tuple, which seems strange as well.

I looked into the code and it seems like the delete_url function might be incorrect - Cloudinary's api shows a destroy slug in the API endpoint.

suprafly avatar Jul 01 '19 20:07 suprafly

In fact, I can pass any random string into the delete function and it will return a success tuple.

suprafly avatar Jul 01 '19 20:07 suprafly

To debug this you might want to give the PR I just opened (#60) a try, as this is going to get you the actual object returned by the cloudinary API when deleting an asset as well.

tonnenpinguin avatar Jul 19 '19 10:07 tonnenpinguin