r/github • • 8h ago

Question Delete pull request?

Hi all,

I’m very new to using GitHub and I’ve made a mistake and I’m a bit panicked.

Basically I made a pull request and I’ve accidentally exposed my personal information, but I don’t see any way to actually delete the PR and I’ve googled that deleting your account won’t hide it either. The repo maintainer doesn’t seem to have any way to message them either. I know it’s stupid but I have a stalker so I’m very paranoid about having my personal information out there.

I’ve reached out to GH support but idk if they would delete it?

0 Upvotes

13 comments sorted by

View all comments

6

u/Soggy_Writing_3912 7h ago
  1. once pushed, it cannot be deleted.
  2. you can overwrite the commit (force push) to "erase" the HEAD version, but...
  3. if someone has the git SHA, then they can still access it via the GH web ui.
  4. you can close the PR, but again, its not like the data has not yet been taken up by bots, etc
  5. if you decide to at least erase the HEAD, then close the branch and also delete any Github Actions that might have referenced the specific commit SHA.

tldr; the commit SHA is forever present unless the whole repo (AND all its clones) get deleted. Without this nuclear step, your data is definitely open to anyone who have the git repo.