Drupal is a registered trademark of Dries Buytaert
Drupal 11.4.3 Update released for Drupal core (11.4.3)! Webform 6.2.11 Minor update available for module webform (6.2.11). Single Content Sync 1.4.16 Minor update available for module single_content_sync (1.4.16). Mailer Plus Log 1.2.6 Minor update available for module symfony_mailer_log (1.2.6). Metis (VG Wort integration) 2.1.0 Minor update available for module metis (2.1.0). HTTP Anti-virus 1.1.4 Minor update available for module httpav (1.1.4). AI Related Content 1.0.3 Minor update available for module ai_related_content (1.0.3). HTTP Anti-virus 1.3.2 Minor update available for module httpav (1.3.2). Menu Admin per Menu Module menu_admin_per_menu crossed 50,000 active installs. Visitors (Web Analytics) 8.x-2.33 Module visitors updated after 9 months of inactivity (8.x-2.33).

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.

Activity

Total releases
3
First release
Apr 2026
Latest release
2 months ago
Releases (12 mo)
3 ▲ from 0
Maintenance
Active

Release Timeline

Releases

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