ChristianKl added a comment.
I'm not sure this is the best way to frame the problem. The acceptance criteria don't cover the case where an article gets deleted but the redirect stays. I think the core problem is that it's currently unknown to Wikidata whether a sitelink points to a normal page, a redirect or to a nonexisting page. Ideally, it would be both visible when visiting an item and looking at the list of sitelinks and via SPARQL. Then a normal Wikidata bot could clean up. It's worth noting that not every Wikipedia admin who deletes a page necessarily has the right to edit the respective Wikidata item as he might not be autoconfirmed on Wikidata and the page is protected. As such the user account can't remove links in all cases when a bot on Wikidata could. TASK DETAIL https://phabricator.wikimedia.org/T261275 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: ChristianKl Cc: ChristianKl, Mohammed_Sadat_WMDE, Aklapper, Lydia_Pintscher, Akuckartz, darthmon_wmde, Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, Wikidata-bugs, aude, Mbch331
_______________________________________________ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs