Clean up your unused assets

Asset Cleaner helps you identify and remove unused assets in Craft CMS 5. Scan volumes, export reports, and safely delete files you no longer need.

Powerful features for asset management

Everything you need to keep your Craft CMS assets organized and storage optimized

View Usage Button

See where any asset is used directly from the asset edit page. Track references in entries and content fields.

Utilities Page

Scan volumes for unused assets with bulk actions. Results grouped by volume with file counts and total sizes.

Export Options

Download CSV or ZIP of unused assets with smart filenames. Choose to preserve folder structure or flatten files.

Safe Deletion

Soft delete moves assets to trash for safe removal with recovery option. Permanent delete requires double confirmation.

Memory Efficient

Handles large files (10GB+) without memory issues. Streaming ZIP creation processes files in 8KB chunks.

CLI Commands

Scan, export, and delete from the command line. Perfect for automation and scheduled cleanup tasks.

See it in action

A clean, intuitive interface that fits seamlessly into Craft CMS

Asset Cleaner Utilities Panel

Utilities Panel

Scan volumes and view unused assets grouped by volume with file counts and sizes

Asset Usage View

Asset Usage

View where any asset is used across entries and content fields

Easy installation

Get up and running in minutes

1

Install via Composer

Run the composer require command to add the plugin to your project

2

Activate the plugin

Install the plugin via the Craft CLI or Control Panel

3

Start cleaning

Navigate to Utilities → Asset Cleaner and scan your volumes

Terminal
# Install the plugin
composer require yannkost/craft-asset-cleaner

# Activate the plugin
php craft plugin/install asset-cleaner

Requirements

  • Craft CMS 5.0 or later
  • PHP 8.2 or later

Ready to clean up your assets?

Install Asset Cleaner today and reclaim your storage space.

Get Asset Cleaner