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…
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.


And just like that,
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
Written by
Related posts
From coder to orchestrator: How agents shift the role of a developer
Developers are owning more of the delivery system around code, not just code itself. Join us during GitHub Universe to meet other devs, learn something new, and explore what’s next.
Stacked sessions and pull requests in the GitHub Copilot app
Learn how I modernized an old codebase of mine using stacked sessions and pull requests in the GitHub Copilot app.
The cost of saying yes has changed
The cost of writing code dropped; the cost of owning it didn’t. A framework for deciding which changes are actually cheap in the AI era.