Manual:deleteUserEmail.php
Appearance
MediaWiki version: | ≥ 1.38 Gerrit change 720819 |
MediaWiki file: deleteUserEmail.php | |
---|---|
Location: | maintenance/ |
Source code: | master • 1.42.4 • 1.41.5 • 1.39.11 |
Classes: | DeleteUserEmail |
Details
[edit]deleteUserEmail.php file is a maintenance script to delete the email address of users on the wiki. This can be used as a mechanism to preserve privacy of users by removing some personally identifying information, their email address.
Options/Arguments
[edit]Argument | Description | Required? |
---|---|---|
<user> | Username or user ID, if starts with # | Required |
Usage
[edit]php maintenance/run.php deleteUserEmail <user>
In MediaWiki version 1.39.10 and earlier, you must invoke maintenance scripts using
php maintenance/scriptName.php
instead of php maintenance/run.php scriptName
.Terminal
$ php maintenance/run.php deleteUserEmail Foo Done!
This will blank Foo's email address from the database.
Terminal
$ php maintenance/run.php deleteUserEmail '#19' Done!
This will blank user ID number #19's email address from the database.
Note the quotes around #19
, which may be required.