In general, our APIs deal with images by default, including our DELETE methods.
That is why when trying to delete or edit resources of another type (i.e. Video or Raw) the resource_type
parameter must be included.
For example (deleting videos with NodeJS):
cloudinary.api.delete_resources(public_ids,
function(result){console.log(result)}, { resource_type: "video" });
Comments
2 comments
The callback should be the last parameter shouldn't it?
Hi Isaak,
The callback is the last parameter in the 'v2' methods in the SDK, but the methods without 'v2' still support the older convention, which has the callback earlier. This was changed due to what you said, the callback being the last parameters as a common Node convention, but both are supported depending on which version of the method you use.
If you use cloudinary.v2.api.delete_resources, the callback is the last parameter.
Thanks,
Stephen
Please sign in to leave a comment.