Clean Assets

Free!
Download
Clean Assets
Description

Description

Checks all your content files for each assets url or id if no content file uses it, it will delete that file.

Danger it doesn't check if your script files uses assets, so it will delete them too. Only use this if you know that your assets should only be used in your content files, meaning all the files in the 'site/content' folder.

Installation

  1. Copy the "CleanAssets" folder contents to your Statamic site/addons directory
  2. Run php please update:addons to load the addons dependencies.

Usage

  • run php please clean_assets at the root of your project folder

License

Icons made by Freepik from www.flaticon.com

MIT License


Important Links
Details
Released October 1, 2019
Downloads 186
Requires Statamic 2

Mykolas Mankevicius

I create Statamic things :)

More by Mykolas Mankevicius

Similar Addons

See All
A quick way to get started creating business logic for Statamic

Business Logic

by Sam Miller in API, Utility, Tool
A quick way to get started creating business logic for Statamic
An imgix addon for integrating responsive images into Statamic sites.

imgix-statamic

by imgix in Tool, Utility
An imgix addon for integrating responsive images into Statamic sites.
Log into you site, from any page, using the Esc key

Mousetrap

by Erin Dalzell in Utility
Log into you site, from any page, using the Esc key
Anchorman allows you to automatically populate collections with articles from different RSS/Atom feeds. $30

Anchorman

by Wout Mager in Enhancement, Tool, Utility
Anchorman allows you to automatically populate collections with articles from different RSS/Atom feeds.