Use special extensions and CMS maintenance scripts for mass delete edits and inactive users. Use following in several passes:
Special pages:
- Special:Nuke - tool allows for mass deletions of pages recently added by a given user or an IP address
- Special:Statistics - view current state
Run commands of CMS maintenance scripts (terminal/console only):
php maintenance/deleteArchivedRevisions.php --delete
php maintenance/removeUnusedAccounts.php --delete
Common service in end of work:
php maintenance/purgeOldText.php --purge