How to permanently remove a closed pull request on GitHub?

Oops I messed up a pull request

So I made a mistake and created a pull request that wasn’t supposed to happen. I closed it myself but it’s still hanging around.

You can still see it if you have the direct link and it shows up in my activity feed. This is kind of embarrassing.

Is there a way to make it disappear completely? I mean like really gone - no URL access no activity history nothing. I want it to vanish into thin air.

Has anyone figured out how to do this? I’ve looked through the GitHub docs but can’t find anything about totally removing closed pull requests. Any tips or tricks would be super helpful. Thanks!

Unfortunately, GitHub does not offer a means to completely remove a closed pull request from its history. The system is designed to preserve a full record of changes and maintain a traceable project history for transparency and accountability.

From experience, if you want to minimize the pull request’s visibility, you might edit its title and description to something generic. Alternatively, changing the repository to private could help reduce public exposure. In very extreme cases, deleting and recreating the repository is an option, though it comes with significant drawbacks for collaborative work.

I’ve experienced a similar situation and found that GitHub does not offer a way to completely obliterate a closed pull request from its history. Once a pull request is created, it becomes a permanent part of the repository’s record. That said, you could consider editing the title and description so that the content appears more generic. If the repository is personal, setting it to private might also conceal the pull request from public view. In extreme cases, deleting and recreating the repository is an option, though this approach is quite drastic and could disrupt collaborators.

sry mate, been there done that. github’s like a permanent record keeper. no way to fully nuke a PR once it’s out there. u could try renaming it to somthin boring or generic tho. if its ur own repo, maybe switch it to private? that might help hide the oopsie from prying eyes lol