Manual talk:RemoveUnusedAccounts.php

How to avoid the deletion of recently created accounts
Replace in RemoveUnusedAccounts.php the lines below:

by these:

In the example above, only unused accounts registered more than 10 days ago will be deleted. You may replace "10" by the number of days most convenient for you. Capmo 07:11, 11 December 2008 (UTC)
 * Here's an update to this patch according to the code as of January 2012. Also moved the user_registration check to before the isInactiveAccount for performance reasons.
 * Original lines:

""
 * Patched (untested):

""
 * Krinkle 18:37, 27 January 2012 (UTC)
 * Or just use the 'ignore-touched', 'Skip accounts touched in last N days' option. Jidanni (talk) 03:02, 22 February 2012 (UTC)

doesnt work

 * MediaWiki 	1.16.0 (r78352)
 * PHP 	5.3.2-1ubuntu4.10 (apache2handler)
 * MySQL 	5.1.41-3ubuntu12.8


 * php removeUnusedAccounts.php --delete
 * Remove unused accounts


 * Checking for unused user accounts...
 * ...found 0.

I have hundreds of unused spambot user accounts. Igottheconch (talk) 05:24, 31 May 2013 (UTC)