Phantasmal.Umbraco.UnusedMediaManager
1.1.0
dotnet add package Phantasmal.Umbraco.UnusedMediaManager --version 1.1.0
NuGet\Install-Package Phantasmal.Umbraco.UnusedMediaManager -Version 1.1.0
<PackageReference Include="Phantasmal.Umbraco.UnusedMediaManager" Version="1.1.0" />
<PackageVersion Include="Phantasmal.Umbraco.UnusedMediaManager" Version="1.1.0" />
<PackageReference Include="Phantasmal.Umbraco.UnusedMediaManager" />
paket add Phantasmal.Umbraco.UnusedMediaManager --version 1.1.0
#r "nuget: Phantasmal.Umbraco.UnusedMediaManager, 1.1.0"
#:package Phantasmal.Umbraco.UnusedMediaManager@1.1.0
#addin nuget:?package=Phantasmal.Umbraco.UnusedMediaManager&version=1.1.0
#tool nuget:?package=Phantasmal.Umbraco.UnusedMediaManager&version=1.1.0
Unused media manager
An Umbraco 17 Media dashboard that finds media not referenced by any content and removes it in bulk. It ships the dashboard UI and the server API.
Install
dotnet add package Phantasmal.Umbraco.UnusedMediaManager
Restart the site. The UnusedMediaComposer registers the service and controller automatically. No configuration is required. The dashboard appears in the Media section.
Features
Scan the media library for items not referenced by content. Search, sort, page, and view empty folders. Move selected items to the recycle bin (Media access) or empty the recycle bin (admins only). Results are cached for two minutes, and Refresh forces a rescan.
Only references tracked by Umbraco's relation system are detected. Media referenced directly in code or templates can appear as unused, so review before deleting.
How it works
UnusedMediaService lists all media, subtracts anything related through the umbMedia and relatedMedia relation types, and returns a paged, sorted, filtered result cached in IMemoryCache. UnusedMediaController exposes the API under /umbraco/management/api/v1/unused-media. The dashboard is a Lit web component registered for the Media section, written as plain JavaScript with no build step.
Pack
dotnet pack src/Phantasmal.Umbraco.UnusedMediaManager/Phantasmal.Umbraco.UnusedMediaManager.csproj -c Release
Compatibility
Umbraco 17 and later.
Licence
MIT. See LICENSE.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Umbraco.Cms.Api.Management (>= 17.4.2)
- Umbraco.Cms.Web.Website (>= 17.4.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|