brainswarm / cleanup
This package looks for unused resources and deletes them on disc. It does that via a command controller.
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
Type:typo3-flow-package
Requires
- typo3/flow: ~2.0.0
This package is auto-updated.
Last update: 2025-03-08 04:23:44 UTC
README
This package provides a command controller that allows you to clean up resources. Tested with Flow 2.x
How to use it
Add the package to your Flow Installation. Afterwards you can use the following commands:
./flow resources:cleanup This loops through all files in the Data/Persistent/Resources/ folder and checks if they are still being referenced in the database. If not, the files are deleted.
./flow resources:cleanupbydb This loops through all resources that are known in the database and deletes them if they aren't referenced anymore by a model.
Hints
Since this package is manipulating resources and the database it is recommended to make a backup of both your Resources as well as the database. The package can be very helpful when you need to save disc space or need to cleanup things e.g. when preparing for an upgrade to Flow 3.x and above.