cloudinary / CloudinaryDotNet

Cloudinary DotNet library
MIT License
102 stars 68 forks source link

Image is not deleted even when response from CloudinaryDotNet is successful #361

Open portal7 opened 6 months ago

portal7 commented 6 months ago

Bug report for Cloudinary .NET SDK

Before proceeding, please update to latest version and test if the issue persists

Describe the bug in a sentence or two.

Issue Type (Can be multiple)

Steps to reproduce

Executing

 var deleteParams = new DelResParams()
   {
       PublicIds = new List<string> { "wsv4vxeglcbupvmonsno" },   // Example of publicId
       Type = "upload",
       ResourceType = ResourceType.Image,
       Invalidate = true,
       Tag = "REMOVED"
   };

  var result = _cloudinaryClient.DeleteResources(deleteParams);
   // returns OK and Errors = null 

Error screenshots or Stack Trace (if applicable)

OS and Version

Versions and Libraries (fill in the version numbers)

Repository

If possible, please provide a link to a reproducible repository that showcases the problem

Vdeub-cloudinary commented 6 months ago

Hi @portal7,

Do you mind sharing your cloud_name? Is it wapicom? If it is the case, as documented here, the public_id contains the folder path so in your case, you should have set the public_Id to taller/wsv4vxeglcbupvmonsno.