Manual:deleteTag.php
MediaWiki file: deleteTag.php | |
---|---|
Location: | maintenance/ |
Source code: | master • 1.43.0 • 1.42.4 • 1.39.11 |
Classes: | DeleteTag |
Details
editdeleteTag.php is a maintenance script that removes a revision tag from edits and log entries where it was applied.
Arguments
editArgument | Description | Required |
---|---|---|
tagname | Name of the tag to delete | Required |
Usage
editphp maintenance/deleteTag.php tagname
Terminal
$ php maintenance/deleteTag.php "mobile edit" Deleting tag 'mobile edit'... 1 The tag has been removed from 1 revisions, deleting the tag itself... Done.
You can find all valid tags at Special:Tags
Terminal
$ php maintenance/deleteTag.php "visualeditor-switched" Tags defined by an extension cannot be deleted unless the extension specifically allows it.
Some MediaWiki extensions may not allow tags to be deleted.
Common error
edit- Tag '$tag' not found
This error occurs when an invalid tag name is given. See Special:Tags for valid tag names.