Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to delete files in github using the web interface

Tags:

github

The title pretty much is the question. I am aware of git rm file but this isn't what I am looking for. I am looking for a way to delete files and folders in a github repo using ONLY a browser.

like image 559
Arnab Datta Avatar asked Jan 09 '13 14:01

Arnab Datta


People also ask

How do I delete files from GitHub website?

Browse to the directory in your repository that you want to delete. In the top-right corner, click , then click Delete directory. Review the files you will delete. At the bottom of the page, type a short, meaningful commit message that describes the change you made to the file.

Can you delete files from GitHub?

Note: on GitHub, you now can directly delete a file from the web interface (without having to even clone the repo).

How do I completely delete a file from GitHub?

Delete Files using git rm. The easiest way to delete a file in your Git repository is to execute the “git rm” command and to specify the file to be deleted. Note that by using the “git rm” command, the file will also be deleted from the filesystem.


2 Answers

This is not (yet?) available through the web interface.

As GitHub added File editing, then File creation features, this may make sense to propose such a feature. The recommended channel to do so is to send an email to [email protected].

Update

Deletion of files through the web interface is now available.

screenshot

like image 59
nulltoken Avatar answered Sep 29 '22 18:09

nulltoken


Delete all files within a folder. Folders are deleted automatically if there is no file in it anymore.

like image 32
snickers2k Avatar answered Sep 29 '22 18:09

snickers2k