Lurk / cloudinary_rs

unofficial cloudinary rust SDK
4 stars 6 forks source link

Create a delete asset functionality #35

Closed DhvaniBhesaniya closed 1 week ago

DhvaniBhesaniya commented 1 week ago

can you create a delete funcnality also , just like this node example,

" const publicId = user.profileImg.split('/').pop().split('.')[0]; await cloudinary.uploader.destroy(publicId); "

by giving the public id in the destory method the assets are being deleted .

can you create a delete method also .

Lurk commented 1 week ago

Hey @DhvaniBhesaniya check out 0.5.2 version
https://github.com/Lurk/cloudinary_rs?tab=readme-ov-file#destroy-an-asset-by-publicid

DhvaniBhesaniya commented 1 week ago

Thanks , its working fine