6 votes


MediaCleaner: an efficient way to keep your Media clean. 

MediaCleaner analyzes the content of the Media folder and the content of the Media section of Umbraco, then extracts the files that are present in the media folder but not in the Umbraco Backoffice and the Media items without a valid file in the Media folder.

Unlike other similar packages, it uses the Umbraco Business Objects, there are no direct queries to the database, which means lightweight execution and compatibility with all the database types supported by Umbraco (SQL Server and MySQL).

The feature is available to all the Backoffice users that can access the Media section, but only the ones that belong to the Administrator group can clean the files. 

Consider to make a backup before cleaning the files and folders. 

ChangeLog for version 0.97


  • Solved a problem during the installation of the package;

ChangeLog for version 0.96


  • Optimizations to perform a quicker scan;


ChangeLog for version 0.95

  • Service release for version 0.94 that fails on websites with large content;

ChangeLog for version 0.94

  • Now all the content (published or not) is parsed in order to filter the orphan files that may be present in the content as URL but without Media Item;
  • The folder created-packages is excluded from the processing;



 Download package
version 0.97

NuGet install instructions for Umbraco versions below 9

Install-Package MediaCleaner

Package owner

Michele Di Maria

Michele Di Maria

Michele has 239 karma points

Package Compatibility

This package is compatible with the following versions as reported by community members who have downloaded this package:
Untested or doesn't work on Umbraco Cloud
Version 8.18.x (untested)

You must login before you can report on package compatibility.

Previously reported to work on versions: 7.13.x, 7.9.x, 7.8.x, 7.7.x, 7.6.x, 7.5.x, 7.4.x, 7.3.x, 7.2.x, 7.1.x, 7.0.x

Package Information

  • Package owner: Michele Di Maria
  • Created: 08/12/2017
  • Current version 0.97
  • .NET version 4.5.2
  • License MIT
  • Downloads on Our: 1.9K
  • Downloads on NuGet: 18.9K
  • Total downloads : 20.8K