How to delete multiples files in Github #22543
-
Is there a way to select all files and delete files in github at once? Currently I delete single file at time and commit changes. I want to select multiple or all files and delete under a single commit. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 21 comments 3 replies
-
Hi @naqvisn, Thanks for being part of the GitHub Community Forum! Your post was edited because it contained potentially sensitive information that you may not have intended to make public, such as your email address shared as a tag. We discourage users from sharing such information in our public forum, as it can create security and privacy risks for the poster, as well as other users. If you want to share a repo with others in the Community Forum, we recommend sharing a link to the GitHub repo in which the project you are working on exists, rather than sharing an email address. Cheers! |
Beta Was this translation helpful? Give feedback.
-
Hi @naqvisn, There isn’t a way to select multiple files for deletion using the Web UI at the moment, but I’ll let the team know you’d like us to add this feature in the future. In the meantime, the way we recommend editing or deleting multiple files is by working with a local repository. You would then be able to delete the files in your local clone, commit that change to your local repository, and then push that change to the remote repository on GitHub. The steps for doing this are:
I hope this helps! |
Beta Was this translation helpful? Give feedback.
-
how do i open the command line? |
Beta Was this translation helpful? Give feedback.
-
One easy way: download and install git from “https://git-scm.com/download/win”. In windows explorer, go to the folder you want, right-click and run “Git bash here”. |
Beta Was this translation helpful? Give feedback.
-
Thank you brother |
Beta Was this translation helpful? Give feedback.
-
press Ctl+ALT+t to open a new terminal in Ubuntu |
Beta Was this translation helpful? Give feedback.
-
How do I delete multiple files using github desktop? |
Beta Was this translation helpful? Give feedback.
-
Thank you so much … |
Beta Was this translation helpful? Give feedback.
-
For those looking for a git solution (command line solution):
You may go ahead and commit the change. |
Beta Was this translation helpful? Give feedback.
-
Thank you somuch |
Beta Was this translation helpful? Give feedback.
-
You may need to use:
How it worked for me:
|
Beta Was this translation helpful? Give feedback.
-
Its deleting folder i want to delete inside folder file’s |
Beta Was this translation helpful? Give feedback.
-
One Solution would be: 1. “View” >> “Show in Explorer”. 2. Make edits in your file explorer, and close. 3. Commit Changes and/or Pull and Merge. |
Beta Was this translation helpful? Give feedback.
-
Thanks. It works. |
Beta Was this translation helpful? Give feedback.
-
Thanks. Appreciate the help. |
Beta Was this translation helpful? Give feedback.
-
It actually deleted the read.md file too |
Beta Was this translation helpful? Give feedback.
-
thanks. But can you add these feautere to web UI? because this id going to be a simple way. |
Beta Was this translation helpful? Give feedback.
-
I get “fatal: pathspec … did not mach any files”, though files are added to GitHub when I add another directory. I was studying to work ith git with GitBush, GitGUI, Intellij IDEA, TortoiseGit and, think, made some modifications, which I cannot get rid of now. |
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
I'm a bit late, but another way you could do it is that you could click |
Beta Was this translation helpful? Give feedback.
Hi @naqvisn,
There isn’t a way to select multiple files for deletion using the Web UI at the moment, but I’ll let the team know you’d like us to add this feature in the future.
In the meantime, the way we recommend editing or deleting multiple files is by working with a local repository. You would then be able to delete the files in your local clone, commit that change to your local repository, and then push that change to the remote repository on GitHub.
The steps for doing this are:
git checkout master
rm -r
command will recursively remove your folder:git rm -r folder-name