How to remove leaked code and information from GitHub
Your source code shared without permission can be removed from GitHub with a DMCA notice and personal information under GitHub's private information policy; leaked passwords and keys must be revoked first.
Steps
- Revoke any leaked password or API key immediately.
- File a DMCA notice for your code, listing forks.
- Use the private information removal request for repositories with personal data.
- Remember deleted files can remain in commit history.
Frequently asked questions
Is a deleted file gone from history?
No; history must be cleaned and secrets changed.