Wiki source code of Delete Spam Pages and Users

Last modified by Vincent Massol on 2026/08/14 19:08

Hide last authors
Vincent Massol 18.1 1 The application home page, "Delete Spam User and Pages", finds every page containing a spam term, the accounts that last modified them, everything else those accounts touched and the events they produced, then removes all of it in one pass, leaving [[protected users>>doc:documentation.extensions.admin.antispam.protected-users.WebHome]] alone. Only the revisions made by the accounts found are deleted, so a page that existed before the spam keeps its earlier content.
Vincent Massol 7.1 2
Vincent Massol 17.1 3 1. Open the [[AntiSpam application home page>>doc:documentation.extensions.admin.antispam.open-application.WebHome]].
Vincent Massol 13.1 4 1. Type the spam term in the "Search..." field, or the reference of an account in the "User..." field.(((
5 {{image reference="spam-search-filled.png" size="extra" alt="The AntiSpam home page with a spam term typed in the Search field, above the User field and the Search, Show Activity Stream and Find Inactive Users buttons"/}}
6 )))
Vincent Massol 7.1 7 1. Click "Search" to list the matching pages, their authors, the other pages of those authors and their events.(((
Vincent Massol 13.1 8 {{image reference="spam-search-results.png" size="extra" alt="Search results showing the Matching Pages, Authors and Related Pages sections for a spam term"/}}
Vincent Massol 7.1 9 )))
Vincent Massol 18.1 10 1. Click "Check for Spam", and add a pattern in [[Configure Spam Keywords>>doc:documentation.extensions.admin.antispam.configure-keywords.WebHome]] for any page reported in red.(((
Vincent Massol 13.1 11 {{image reference="spam-check.png" size="extra" alt="The checked page list, with recognised pages in green and one unrecognised page in red carrying the message Not spam content! You may need to add keywords!"/}}
Vincent Massol 7.1 12 )))
13 1. Click "Delete".(((
Vincent Massol 13.1 14 {{image reference="spam-confirm-delete.png" size="extra" alt="The button bar after clicking Delete, with a new Confirm Delete button next to it"/}}
Vincent Massol 7.1 15 )))
16 1. Click "Confirm Delete".
17 1. Every entry is annotated with what was done to it: the pages report "Cleaned!" and the accounts report "Deleted!".(((
Vincent Massol 13.1 18 {{image reference="spam-delete-result.png" size="extra" alt="The result of the cleaning, with each matching page marked Cleaned! and the spam account marked Deleted!"/}}
Vincent Massol 7.1 19 )))

Get Connected