Cannot clear notification from "gitcoin-dev/gitcoin.com" #174310
-
| Select Topic AreaBug BodyThe user, repo behind the spam seems to be deleted, however the resulting notification cannot be cleared or marked as read | 
Beta Was this translation helpful? Give feedback.
Replies: 36 comments 48 replies
-
| 💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩ 
 Where to look to see what's shipping 👀 
 What you can do in the meantime 💻 
 As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ | 
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
| It should be cleared now. Both issue created by the bot and the repo are gone. | 
Beta Was this translation helpful? Give feedback.
-
| I'm having the same issue with a notification from  | 
Beta Was this translation helpful? Give feedback.
-
| Mine is  It's very annoying. | 
Beta Was this translation helpful? Give feedback.
-
| I couldn't find any way to remove this notification. This is incredibly bad experience. | 
Beta Was this translation helpful? Give feedback.
        
          
            
              This comment was marked as off-topic.
            
          
            
        
      
    
            
              This comment was marked as off-topic.
            
          
            
        -
| @KSXGitHub your solution worked! For anyone wanting to use this: 
   
   
 curl -L \
  -X PUT \
  -H "Accept: application/vnd.github+json" \
  -H "Authorization: Bearer $TOKEN" \
  -H "X-GitHub-Api-Version: 2022-11-28" \
  https://api.github.com/notifications \
  -d '{"last_read_at": null,"read":true}' | 
Beta Was this translation helpful? Give feedback.
-
| Simple clear for notifications if you have  curl -L \
  -X PUT \
  -H "Accept: application/vnd.github+json" \
  -H "Authorization: Bearer $(gh auth token)" \
  -H "X-GitHub-Api-Version: 2022-11-28" \
  https://api.github.com/notifications \
  -d '{"last_read_at": null,"read":true}' | 
Beta Was this translation helpful? Give feedback.
-
| Also having this issue. Is there a way to prevent unknown repos from adding you and then @ you in their comments? | 
Beta Was this translation helpful? Give feedback.
-
| It should not be marked as answered, it should be resolved by github. https://github.com/orgs/community/discussions/174246#discussioncomment-14480778 
 | 
Beta Was this translation helpful? Give feedback.
-
| I'm seeing this as well. There is no way to clear the notifications.   | 
Beta Was this translation helpful? Give feedback.
-
| This is affecting me as well:   
 | 
Beta Was this translation helpful? Give feedback.
-
| I'm getting same issue   | 
Beta Was this translation helpful? Give feedback.
-
| Please fix this is making it impossible to use the notifications feature | 
Beta Was this translation helpful? Give feedback.
-
|   Also adding some phantom notifications I got impacted by. I just get rid of them like this: gh api --method PUT notificationsObviously this just marks them as 'read', but it's fine. | 
Beta Was this translation helpful? Give feedback.
-
| This will clear out all notification threads, including those stuck in the Repositories section.  | 
Beta Was this translation helpful? Give feedback.
        
          
            
              This comment was marked as off-topic.
            
          
            
        
      
    
            
              This comment was marked as off-topic.
            
          
            
        -
| Similar to above but using a GitHub Action Workflow, create a GitHub Token (via GitHub -> Developer Settings -> Token Classic -> Notifications (read/write)), then go under any of your project, add  name: Clear notifications (bash)
on:
  workflow_dispatch:   # run manually from the Actions UI
jobs:
  clear:
    runs-on: ubuntu-latest
    steps:
      - name: Mark all notifications as read
        env:
          GH_TOKEN: ${{ secrets.GH_TOKEN }}
        run: |
          curl -X PUT \
            -H "Accept: application/vnd.github+json" \
            -H "Authorization: Bearer $GH_TOKEN" \
            https://api.github.com/notifications | 
Beta Was this translation helpful? Give feedback.
-
| https://github.com/orgs/community/discussions/174283#discussioncomment-14527039 you can use this uvx fown auth loginuvx fown noti delete -r | 
Beta Was this translation helpful? Give feedback.
-
| can't believe this is known for over a year and there's no fix from github....can it be raised as a bug they should fix somehow? | 
Beta Was this translation helpful? Give feedback.
-
| Re-open this issue, it is not fixed! I'm not creating a token just to fix githubs bug. | 
Beta Was this translation helpful? Give feedback.
-
| no way to fix this without installing github's CLI? | 
Beta Was this translation helpful? Give feedback.
-
| Hey @blacksmithop, I recently ran into the same issue — leftover notification from a deleted repo 🤖 Here’s another way to manually remove the stuck notification using the GitHub CLI: # List all notifications and locate the thread ID
gh api /notifications
# Once you have the thread ID, run this to remove it
gh api --method DELETE /notifications/threads/THREAD_ID🔍 You might need to scroll through the list if you have a lot of notifications, but once you get the correct  
 If this helped, feel free to check out my GitHub: hetdabhi and drop a follow for more useful tips 💙 | 
Beta Was this translation helpful? Give feedback.
-
| This issue is definitely not "answered" - Github needs to fix this themselves, I shouldn't need to use the API manually to fix this. | 
Beta Was this translation helpful? Give feedback.
-
| ME TOO  | 
Beta Was this translation helpful? Give feedback.
-
|  Very annoying. Please fix this instead of letting us calling the DELETE API manually. | 
Beta Was this translation helpful? Give feedback.
-
| UP, fix that shit! | 
Beta Was this translation helpful? Give feedback.
-
| I guess this won't be fixed any time soon. GH is forced to move to azure, and that's their no. 1 priority for the next 12 months, according to their CTO. On azure, it can only get better /sarcasm | 
Beta Was this translation helpful? Give feedback.
-
| Found an easier solution. Android users, download diohub from play store, login, go to notifications, tap on the stuck notification. That's it. It will now be cleared! | 
Beta Was this translation helpful? Give feedback.



@ardaguclu thank you! A slightly easier delete command: