Wiki source code of Delete Spam Pages and Users
Last modified by Vincent Massol on 2026/08/14 19:08
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 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. | ||
| 2 | |||
| 3 | 1. Open the [[AntiSpam application home page>>doc:documentation.extensions.admin.antispam.open-application.WebHome]]. | ||
| 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 | ))) | ||
| 7 | 1. Click "Search" to list the matching pages, their authors, the other pages of those authors and their events.((( | ||
| 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"/}} | ||
| 9 | ))) | ||
| 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.((( | ||
| 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!"/}} | ||
| 12 | ))) | ||
| 13 | 1. Click "Delete".((( | ||
| 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"/}} | ||
| 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!".((( | ||
| 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!"/}} | ||
| 19 | ))) |