-
success in deleting but...
I recently made an API with Cloudinary and NodeJS, of course, this API has the function to delete images, but when I went to test it, there was always a problem. The API returns 200, it seems like everything is perfect, but if I go to Cloudinary, it didn't delete anything. In fact, the image is still there. Could someone…
-
I'm unable to delete a file via the media explorer on the Cloudinary website
I have a couple of uploaded files. I want to delete them and I was able to do so for all but one file. When I select the last one and press delete, I get a message saying "2 files deleted successfully" even though I only selected one file. And that file is still present in the media explorer even if I refresh the page. The…
-
Image not getting deleted
I am trying to delete an image. It says that the image is not found but it still opens on the cloudinary_url. >>> cloudinary.uploader.destroy("user_cls1hjqjd00004enqgohyclng_profile_image") {'result': 'not found'} >>> cloudinary.utils.cloudinary_url("user_cls1hjqjd00004enqgohyclng_profile_image")…
-
How to delete directories
Do I need to make any other settings in my Cloudinary account to have permission to delete directories?
-
Deleting Cloudinary Assets
Hi, I am using this API Cloudinary::Api.delete_resources([public_id_1, public_id_2], { all: true, resource_type: 'video' }) I am planning to delete the original asset and other derived transformations EXCEPT one of the transformations (basically thumbnail) of the original asset. Is that possible? If so, please suggest me…
-
how to access photo public id including a folder name?
I am trying to delete photos from my API using the photo public id but with one issue, I have the photos inside a folder so the photo public id is something like this: foldername/photoname_dkjshksjhdk and if i try to delete that photo it will bring error file not found as it will treat it as a path rather than public id.…
-
v2.uploader.destroy function not wokring
Hi, i am trying to delete a resource from cloudinary using publicId, but its not working. It does console .log 'Resource deleted successfully:', undefined; It's in nest Js Below is my code: private destroy(publicId: string): Promise<void> { console.log('this is public id', publicId); return new Promise((resolve, reject) =>…
-
Cannot figure out why the image is not deleting
I'm trying to delete an image using the Nodejs SDK. const result = await cloudinary.uploader.destroy(profile.id); But it returns a result of 'not_found' even though I'm specifying the correct public id As you can see in the pics above, the id of the resource in the media lib matches what is in the console (profile.id =…
-
Deleting empty folders across 23000 folders
I have my assets grouped 9 per asset folder and some 23,000 asset folders. I want to delete any asset folder which contains no assets. I have developed a purge utility which recursively traverses the asset folders and does what I need. HOWEVER when I run this in my production environment it hit the 5000 calls/h limit once…
-
How to correctly delete folders with mixed contents by prefix?
I have a bunch of test folders with both images and raw files in them which I want to delete. I have this code: let folders = await cloudinary.api.sub_folders('albums').then(resp => resp.folders) var folders_to_delete = folders.filter((f) => f.name.startsWith('test')) console.log("folders to delete: ", folders_to_delete)…
-
How to Empty a Folder Using Cloudinary Go SDK?
I encountered an issue when trying to delete a folder, as it showed an error that the folder was not empty. To address this, I found a solution using DeleteAssetsByPrefix method. However, the folder might contain various types of assets such as images, videos, or raw files. To handle this, I attempted to delete each asset…
-
How to Empty Deleted Assets Folder
Recently I was alerted that I had exceeded my storage quota. I logged into the GUI and used Shift Select to highlight all of my content then selected Delete. I did not perform a Bulk Delete. Days later I found that my storage was still way over capacity. I found the Deleted Assets folder in my media library with a record…