smeevil / cloudex

An elixir library which helps with uploading image files or urls to cloudinary
Do What The F*ck You Want To Public License
104 stars 64 forks source link

Cloudex.delete/1 does not seem to delete asset #59

Open suprafly opened 5 years ago

suprafly commented 5 years ago

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 commented 5 years ago

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

tonnenpinguin commented 5 years ago

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.