delete_resources not_found
I am trying to use your API (php) to clean off old images to clean up our account (currently over quota).
I have thousands of images to delete but at present I am getting a "not_found" response for all.
This is the full response object...
Cloudinary\Api\Response Object
(
[rate_limit_reset_at] => 1542074400
[rate_limit_allowed] => 5000
[rate_limit_remaining] => 4999
[storage:ArrayObject:private] => Array
(
[deleted] => Array
(
[SSKd17LUkCkIFgjMRQ0F5BEXKCsO1RFS] => not_found
[SSKd17LUkCtWOaBVhhoaulUap8VyXWKZ] => not_found
[SSKd17LUkCXdB72CrunN1o8gbTjw8SN3] => not_found
[SSKd17LUkC2x79jbN1duXwaODIEU5Ots] => not_found
[SSKd17LUkCDBoNwgGIoy5xCR454uwv2b] => not_found
[SSKd17LUkCyqurzfjHaIis47Xib0CGgE] => not_found
[SSKd17LUkC82cvg8P4JxSr4kiJpfVGlu] => not_found
[SSKd17LUkCf7H009hTx0Zy1GBn6Lqe25] => not_found
[SSKd17LUkCOFbHt7l1DRB3QJJUAIwrKx] => not_found
[SSKd17LUkCspq8eyGdyJHK0yG8g0pUoJ] => not_found
[SSKd17LUkCRy20vjalq0KnzSQ6SkfjJ7] => not_found
[SSKd17LUkCr19hoCANmAQIGPJxHorZFr] => not_found
[SSKd17LUkC11oyKD9nEemvrOzP8NHdMG] => not_found
[SSKd17LUkCewv9ikRYbl52KCDVcXjnYh] => not_found
[SSKd17LUkCkKgfTpEzc0kH8jnEW3njAZ] => not_found
[SSKd17LUkCGyhaHHI3xWddljohv3viZK] => not_found
[SSKd17LUkCzNh9jm4dMo4EUHPFQzjHxK] => not_found
)
[partial] =>
)
)
I have tried the following...
Uploading a new image and then deleting using the same code. This seems to work.
This is the call I am making
$result = $apiObj->delete_resources($idArray);
I know the IDs exist as I can view them via https://cloudinary.com by simply plugging in the ids to the "/image/upload/" url
Are you please able to help?
-
Hi Luke,
I tried looking at a couple of public IDs in this response but wasn't able to find them in your account. Would you mind opening a support ticket with us so we can more freely discuss your account information? Here is the link to open a ticket:
https://support.cloudinary.com/hc/en-us/requests/new
Thanks!0 -
Thanks Marissa. Yes prepending the folder to the image id did the trick.
Cheers
Luke
0
Post is closed for comments.
Comments
2 comments