Extension talk:PureWikiDeletion

Have you considered empty rather than a special string like #DELETED? Ashley Y 08:45, 10 March 2010 (UTC)
 * It's a possibility. Some editors have pointed out that #DELETED makes it clear that the intent is to delete rather than vandalize, but a vandal could just as easily replace all content with #DELETED. It saves keystrokes to use empty too. On the other hand, if we use #DELETED, then blanking is unnecessary; we can just add a #DELETED tag to the beginning of a page and leave the rest of the content, so that people don't have to dig through the history to find what was there. Then again, that possibility also exists with #REDIRECT, but in practice almost everyone replaces all the existing page content with #REDIRECT. Tisane 23:19, 10 March 2010 (UTC)

What hook(s) to use?
Some possibilities: Tisane 05:25, 11 March 2010 (UTC)
 * RevisionInsertComplete, ArticleSave, ArticleSaveComplete, ArticleUpdateBeforeRedirect - We could check the article text every time a save is made, detect if the article has been blanked, and if so, then add it to a table of blanked articles that aren't to be counted in or listed in Special:Allpages or any of that other good stuff. Likewise, if a blank article (i.e. one that exists in the table of blanked articles) is unblanked, then it will be removed from that table. We might use both this hook and APIEditBeforeSave to make sure we are getting the API saves too. Question: Will it also catch revisions made through Special:Import? I'll have to test that.