|This process is deprecated in favor of Wikipedia:Revision deletion for simply removing an edit from the history and should not be used except for handling of complex history merges|
The MediaWiki software allows administrators to remove individual revisions from the history of a page. Since the introduction of the RevisionDelete tool, it is used only for handling complex page history merges - see Wikipedia:How to fix cut-and-paste moves.
- This refers to the pre-RevisionDelete era.
Selective deletion is generally only done when the revisions contain personal information of a user or some other person (telephone numbers, etc.) or copyright violations. For most kinds of simple vandalism, merely reverting the page to a good version is considered sufficient.
Since deleting a revision effectively hides all traces of the edit ever being made, including the name of the editor who made it, doing so may violate the attribution requirement of the GFDL and CC-BY-SA — not to mention making the article history potentially misleading — if the deleted revision introduces any changes that are maintained in the following non-deleted revisions. Thus, selective deletion should be used very sparingly, and should not be used in cases where legitimate edits have been made between the time the unwanted content was added and the time when it was subsequently found and removed. In problematic cases, contacting a developer with direct database access may be necessary to sort out the history.
Deleted revisions are available to administrators only. In order to further restrict the visibility of revision, a request for oversight can be filed.
How to do it
Prior to the introduction of RevisionDelete, MediaWiki provided no way for administrators to directly delete only selected revisions; the only way to accomplish this was to first delete the entire article and then to restore the revisions one does not want to see deleted. This basic procedure alone is sufficient for simple cases, but it does have some problems if the article has a long history:
- If the article already has some deleted revisions (because some had been selectively deleted before, for example), deleting it causes the previously deleted revisions to be mixed with the newly deleted ones; sorting them out again may be next to impossible. Thus, there is a risk that previously deleted versions containing sensitive information may be accidentally restored when a later selective deletion is performed.
To avoid these problems, one of the following methods were used. The first method is somewhat simpler, but requires selecting lots of checkboxes. The second avoids this, at the cost of some extra steps especially if there are previously deleted revisions.
- Move the page to a new title (say, PageName/deleted revisions YYYY-MM-DD, where YYYY-MM-DD is today's date).
- If the original page had any previously deleted revisions, restore them, move them to a different title (say, PageName/old deleted revisions) and delete them again.
- Delete the page you moved in step 1.
- Restore all the revisions except the ones you want deleted.
- Move the restored revisions back to the original title.
- Check if the page has any previously deleted revisions. If so:
- Delete the page.
- Restore only the revisions you want deleted.
- Move the restored revisions to a new title (say, PageName/deleted revisions YYYY-MM-DD, where YYYY-MM-DD is today's date) and delete them.
- Restore the remaining versions of the article.
Another difference between these methods is that the former leaves an entry in the page history marking the page moves, while in the latter the only trace of the process is left in the deletion/move logs. Depending on the circumstances, having the moves shown in the history may or may not be desirable, but generally it shouldn't make much difference.