| MediaWiki version: | ≥ 1.4 |
| MediaWiki file: deleteOrphanedRevisions.php | |
|---|---|
| Location: | maintenance/ |
| Source code: | master • 1.40.0 • 1.39.4 • 1.35.11 |
| Classes: | DeleteOrphanedRevisions |
Details
deleteOrphanedRevisions.php is a maintenance script to delete revisions which refer to a non-existing page. It is useful to deal with any orphaned revisions left over after manual deletions of page records from the database. After removing revisions, the script also runs purgeOldText.php to purge unused text records.
Options
| Option | Description | Required |
|---|---|---|
| --report | Prints out a count of affected revisions but doesn't delete them. | Optional |
Usage
php maintenance/deleteOrphanedRevisions.php [ --report ]
Terminal
$ php maintenance/deleteOrphanedRevisions.php Delete Orphaned Revisions Checking for orphaned revisions...found 7. Deleting... done.
See also
- deleteRevision.php
- deduplicateArchiveRevId.php
- deleteOldRevisions.php
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.