Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Experimental project
This is a sandbox project, which contains experimental code for developer use only.
If you want to keep all the customizations of modules and themes of your site and for any reason you want to delete all content, this tool will help.
Cleans your website, removing:
- Content
- Taxonomy
- Menus
- Users
- Paths
- Sitemap
- Logs
- Metatags
- Dart
- Languages
Its possible to extend it and create other items to clean up.
Installation
Put the modules into your sites/module folder
Visit Configuration > System > Site Cleanup
Drush
Examples:
Help: drush site-cleanup --help
Cleaning menus: drush site-cleanup --main-menu --secondary-menu
ps: Use with caution, after this your site might look a bit empty.
Project information
- Created by marcelovani on , updated