In https://example.com/index.php?title=special:categories there are two category-page links:

  • Blue ones: For existing category pages
  • Red ones: For non-existing category pages but are still known by the system

Red ones can be of two sub types:

  1. Category pages that have a link to but have yet to be created
  2. Category pages that were created and no longer exist - deleted.

How could I remove all red links to category pages I already deleted (type 2), from that very web page?

1 Answer 1


Special:Categories is a list of the categories the pages of that wiki have been categorized into, regardless of whether the category pages of those categories are created or not. In other words, if you add [[Category:Foo]] to the end of page Bar, that will add Foo to the list. Whatever you do with the Category:Foo page won't change that.

  • Tgr, in other words, there is no way to delete these besides a dangerous dive into the SQL database (which I will avoid from)? Thanks,
    – user58733
    May 31, 2019 at 17:41
  • Sure there is, just edit all pages which are in the category, and remove the category tag from them. There are all kinds of tools to make that easier, e.g. pywikibot's category.py.
    – Tgr
    Jun 1, 2019 at 18:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.