How to delete folder that is not empty?

Options
BirdmanZz
BirdmanZz Member Posts: 2
edited January 2023 in Developer APIs

Solved

Best Answer

  • BirdmanZz
    BirdmanZz Member Posts: 2
    Answer ✓
    Options

    I needed to use delete_resources_by_prefix and pass in the ID of the folder I wanted to remove the assets. Initially, I thought that delete_resources would do the same operation, instead, it deleted ALL the assets I had in every folder.

    And finally, one can use delete_folder to delete a folder that is not backed up (better check the settings to see if the backup option is enabled/disabled before).

Answers

  • rlux
    rlux Administrator, Cloudinary Staff Posts: 63
    Options

    @BirdmanZz great to see you've solved your problem! Can you share what you did?