I’m using the upload API to bulk upload dozens of images for a site from a script.
However, during testing, I’ve had to rerun the script multiple times, resulting in hundreds of duplicate images cluttering up the media library.
It would be nice if there were some robust API for managing the media library. A few key features would include:
- Querying uploaded items by file name, content type, and uploaded at timestamp
- Fetching an id for each item
- Deleting items by id (or better yet, by query)
Does such an API exist? If not, please consider this a feature request .