cloudinary / cloudinary_ios

Cloudinary iOS SDK
MIT License
165 stars 106 forks source link

Unable to destroy an image #380

Closed thierrybucco closed 1 year ago

thierrybucco commented 2 years ago

I am unable to destroy an image by doing this call:

cloudinary.createManagementApi().destroy("publicID")

I get this error:

Missing required parameter - signature

What should I do?

esguerrat commented 2 years ago

@thierrybucco According to the error message you are receiving and the code I see that you shared, you are missing the signature, which is a required parameter.

The best practice is to create a signature on the backend, server-side. The reason is that you don't want your API secret to be publicly exposed in your mobile application.

You can find information on our backend SDKs here: https://cloudinary.com/documentation/backend_sdks