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
Updated 8 months ago
Version 1.0.1
Downloads 206
Requires Statamic 2

Mykolas Mankevicius

I create Statamic things :)

More by Mykolas Mankevicius

Similar Addons

See All
Make your content super spooky with this Halloween addon for Statamic. $2

Spooktamic Halloween

by Candour in Fieldtype
Make your content super spooky with this Halloween addon for Statamic.
Loop through an array of future dates, days, months, or years.

Future

by Taylor Collins in Fieldtype
Loop through an array of future dates, days, months, or years.
Add a wordpress style flexible menu editor to Statamic $6

Big Kahuna

by Wout Mager in Fieldtype
Add a wordpress style flexible menu editor to Statamic
"Butik" is a Scandinavian term for a small to medium sized shop, precisely what this Statamic addon has been crafted for. The Statamic Butik e-commerce solution will integrate nicely with your personal Statamic site and help to grow your online business. $149

Statamic Butik

by Jonas Siewertsen in Social Media, Tool, Utility
"Butik" is a Scandinavian term for a small to medium sized shop, precisely what this Statamic addon has been crafted for. The Statamic Butik e-commerce solution will integrate nicely with your personal Statamic site and help to grow your online business.