Jump to content

Recommended Posts

Posted (edited)

Hi everyone,

I wanted to share a small utility module I’ve put together to help keep the /site/modules/ directory tidy.

What it does: When updating modules ProcessWire renames old module directories by prepending a dot (e.g., .ModuleName). Over time, these "hidden" backup folders can clutter your file system.

ProcessModuleCleaner identifies these orphaned directories and allows you to delete them directly from the admin interface.

Key Features:

  • Automatic Detection: Scans your site modules folder for any directory starting with a dot.

  • Native UI: Built specifically for the ProcessWire backend using UIkit 3 classes for a seamless look.

  • Interactive Selection: Uses AlpineJS for a fast and responsive "select all" and delete workflow.

  • Safe Deletion: Uses ProcessWire's WireFileTools for reliable recursive directory removal.

How to use:

  1. Install the module.

  2. Navigate to Setup > Module Cleaner.

  3. Review the list of found folders.

  4. Select the ones you want to remove and click "Delete".

Screenshot / UI: The module displays a clean table with the folder name and the last modified date, so you know exactly how old those backups are.
thumb.thumb.png.91c940ecfca9050ed8a97a52506264d6.png

GitHub: https://github.com/markusthomas/ProcessModuleCleaner

Module Directory: https://processwire.com/modules/process-module-cleaner/

I hope some of you find this helpful for keeping your production or development environments clean! Feedback is always welcome.

Cheers!

Edited by markus-th
Link to Moduldrectory added
  • Like 15
  • Thanks 3

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...