Umbraco plugin for removing unused media
The package is built on the Nexu package. It allows you to find and delete media items that aren't used in the content. After installing you will get the “Media Remove” tab in the developer section.
After installation, you should press once “Rebuild relations”. It will iterate over all content and look for used media items. It will show you progress and how much content has been processed.
The next step is to find unused media by pressing the “Get unused media” button. The results will appear in the table.
The table has 5 columns. It shows index, name of media item, path to media, source URL if it persists, and a checkbox to manually decide to remove or not the media. There is also an option to load an exclusion list, which should contain source URLs of files that shouldn’t be removed. It must be a .txt file and have the relative URLs separated by a newline. Example of exclusion list file:
To load the exclusion list you should press the “Load exclusion list” button. You can press it before or after loading unused media. If a file is successfully loaded on the right will appear a dashed box with the filename will appear and will automatically filter items to remove.
The last step is to remove found media. It will show you progress on how much is already removed, and how much should be removed. All operations are made in the background thread, so you can switch or close a browser tab while waiting for the operation to complete.
You can find this package in the official Umbraco packages repository here:
If you found any issues with it, please create an issue of feature request in our issue tracker:
ET