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
![](https://github.blog/wp-content/uploads/2024/05/Collaboration-LightMode-2-1.png?resize=400%2C212)
How to review code effectively: A GitHub staff engineer’s philosophy
GitHub Staff Engineer Sarah Vessels discusses her philosophy of code review, what separates good code review from bad, her strategy for finding and reviewing code, and how to get the most from reviews of her own code.
![](https://github.blog/wp-content/uploads/2024/05/GitHub-for-beginners.png?resize=400%2C212)
Beginner’s guide to GitHub: Uploading files and folders to GitHub
The next step in our GitHub for Beginners series is learning how to add files and folders to your GitHub repository.
![](https://github.blog/wp-content/uploads/2024/05/GitHub-for-beginners.png?resize=400%2C212)
Beginner’s guide to GitHub repositories: How to create your first repo
Git started on your first repository in the third installment of GitHub for Beginners. Discover the essential features and settings to manage your projects effectively.