Skip to content

Deleting files on GitHub

You know all those files you’ve been creating, editing, moving, and renaming? Well, you’ll be glad to know that you can now remove them using the web-based interface too! Simply…

Author

You know all those files you’ve been creating,
editing,
moving, and renaming?
Well, you’ll be glad to know that you can now remove them using the
web-based interface too! Simply view any file in your repository, click the
delete button at the top, and commit the removal just like any other web-based edit.

Delete a file using GitHub

Commit removal of a file using GitHub

And just like that, 😗💨, it’s gone.

For help with these features, be sure to read our help articles on
creating,
moving,
renaming,
and deleting
files.


Note: Since it’s a version control system, Git always has your back if you need
to recover the file later. If you really, really need to completely
delete a file from a repository for some reason, say a secret key or other sensitive
file that was accidentally commited, you may need to consider
💀🔥the nuclear option🔥💀.

Explore more from GitHub

Product

Product

Updates on GitHub products and features, hot off the press.
GitHub Universe 2024

GitHub Universe 2024

Get tickets to the 10th anniversary of our global developer event on AI, DevEx, and security.
GitHub Copilot

GitHub Copilot

Don't fly solo. Try 30 days for free.
Work at GitHub!

Work at GitHub!

Check out our current job openings.