It's better when it's simple

User Tools

Site Tools


GDPR Plugin

Compatible with DokuWiki


plugin Improve GDPR compliance by removing usernames of deleted users from changelogs

Last updated on
CLI, Action

This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.

Tagged with gdpr, privacy

A CosmoCode Plugin

:!: Simply installing this plugin does not automatically make you compliant with any laws. :!:

This plugin deals with two articles of the European General Data Protection Regulation (GDPR):

The GDPR mandates that personal information is only saved as long as it's needed (it needs reasonable cause). Since IP addresses are deemed personal information, these should be deleted when no longer needed.

Article 17 of the GDPR deals with the “right to be forgotten”. Users can already delete their user account through the profile section. However this does not delete their user names from page and media changelogs1).


Search and install the plugin using the Extension Manager. Refer to Plugins on how to install plugins manually.

:!: To be able to automatically delete IP addresses from media changelogs, PR 2389 needs to be applied - it is not included in Greebo! You can also use a current DokuWiki development snapshot.


IP Deletion

The plugin automatically cleans the IP addresses from page and media changelog entries that were created more than recent_days ago. This happens over time when page or media files are changed.

Please see above's note on the requirements for handling media change logs.

In addition a command line tool is provided to clean all change logs in one go. Call it via the plugin CLI dispatcher:

./bin/plugin.php gdpr

User Deletion

When this plugin is installed, whenever a user is deleted (either from the User Manager or by the users themselves via their profile), their username is set to be deleted from all change logs.

The usernames are replaced with a placeholder like __deletedUser0_ where the number is counted up by 1 per deleted user.


  • Travis:
  • Scrutinizer:
    • code coverage:



  • 2019-03-21 by splitbrain
    Version upped
  • 2018-11-27 by splitbrain
    version upped
  • 2018-05-24 by splitbrain
    Version upped
  • 2018-05-23 by splitbrain
    Version upped
  • 2018-05-22: Merge remote-tracking branch 'deluser/master' by splitbrain
    This merges the two plugins into one. deluser/master: chore: Version upped 🔖 test: Add test testing cleaning of two deleted users ✅ fix: Usernames must be newline separated 🐛 ci: Add support for phpcs and scrutinizer code coverage 👷 test: Add integration tests ✅ feat: clean deleted usernames from changelogs ✨ chore: Initial commit with files from plugin wizard 🎉
  • 2018-05-17: ### Features by micgro42
    Add cli component to clean all changelogs at once ✨ (ca893ec)
  • 2018-05-16 by micgro42
    Initial release of the plugin
  • 2018-05-15 by micgro42
    chore: Initial commit from plugin wizard

Utilized DokuWiki Events

If this is actually necessary is up for debate, see GDPR and deleting users from wiki changelogs
plugin/gdpr.txt · Last modified: 2024-01-07 14:39 by Aleksandr

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki