Cannot delete resources with spaces in public_id

Comments

1 comment

  • Avatar
    Eric Pasos

    Hi Andres,

    When using the Admin API delete_resources method, the public_id must not be encoded (i.e., for your case, use space character instead of %20). For example:

    cloudinary.api.delete_resources(
            ["courses/I am testing/videos/Cows",
             "courses/I am testing/images/course_preview_img",
             "courses/I am testing/images/coverPhoto",
             "courses/I am testing/images/profilePhoto"
            ],
    { type: 'upload' },
    function(error, result) {console.log(result, error); });
    Hope this helps. Thanks.
    0
    Comment actions Permalink

Please sign in to leave a comment.