Skip to main content
Drupal is a registered trademark of Dries Buytaert
EOL Warning: Drupal 11.0 has reached end of life and no longer receives security updates. EOL Warning: Drupal 10.3 has reached end of life and no longer receives security updates. EOL Warning: Drupal 10.2 has reached end of life and no longer receives security updates. EOL Warning: Drupal 10.1 has reached end of life and no longer receives security updates. EOL Warning: Drupal 10.0 has reached end of life and no longer receives security updates. EOL Warning: Drupal 9.5 has reached end of life and no longer receives security updates. EOL Warning: Drupal 9.4 has reached end of life and no longer receives security updates. EOL Warning: Drupal 9.3 has reached end of life and no longer receives security updates. Usage Milestone: jQuery UI Datepicker Module jquery_ui_datepicker crossed 1,000 active installs. Release: Module Builder 4.2.6 Minor update available for module module_builder (4.2.6).

This project offers command-line tools for cleaning personal data from local Drupal databases. It can anonymize user accounts and content fields, and delete webform submissions with the Webform module. Developers can choose which sanitization tasks to run and see planned changes before execution.

Local Data Sanitiser provides CLI-only tools for cleaning personal data from copied local Drupal databases.

Features

  • Deletes Webform submissions when the Webform module is installed.
  • Anonymises non-administrator user accounts.
  • Anonymises customer and contact data stored in content entity fields.
  • Lets developers choose which sanitiser tasks to run.
  • Shows planned record counts before execution.
  • Shows a destructive-action warning with the detected environment before making changes.
  • Uses a modular task-plugin system so more data sanitiser tasks can be added later.

Requirements

  • Drupal 10.3 or Drupal 11
  • Drush

Recommended

  • Webform, if you want to remove Webform submissions.
  • Config Filter, if you want the module kept out of exported config in local environments.

Usage

drush en local_data_sanitiser -y
drush local-data:sanitise

The command is hidden from the Extend UI and is intended for developer CLI use only. It refuses to run outside a detected local environment unless --force is supplied.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
3
Tracked since
Apr 2026
Latest release
4 months ago
Releases (12 mo)
3 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Core Release date
1.2.x-dev Dev 10–11 Apr 15, 2026
1.1.x-dev Dev 10–11 Apr 15, 2026
1.0.x-dev Dev 10–11 Apr 15, 2026