Skip to content

Instantly share code, notes, and snippets.

@gsalzer
gsalzer / github_delete_spam_notification.txt
Created September 25, 2025 17:25
Github: Delete spam notifications
September 2025:
When a spam repository tags a user, s/he may get an email as well as a notification in the Github inbox.
If this repository is removed (e.g. by Github), the notification vanishes from the mailbox, but the inbox
icon still showes a blue dot (new notification). As of now, this alert cannot yet be deactivated from the web
interface, but there is a workaround (see https://stackoverflow.com/a/78145748):
1. Create a general token with the notifications privilege
2. Replace $TOKENID by the token in the following command and run it:
curl -X PUT -H "Accept: application/vnd.github.v3+json" -H "Authorization: token $TOKENID" https://api.github.com/notifications