Delete a specific file from github repository #58962
Replies: 5 comments 4 replies
-
|
Hi @harinigautham, can you share the link of that repo? And some more details about it. It looks like to relate to permissions issue. Are you the owner of the repository? |
Beta Was this translation helpful? Give feedback.
-
|
The screenshot is of a commit view, not of the repository at some branch. You can't edit a commit, at least not over the web UI. If you just want to delete the file with a new commit, view the file at the right branch (instead of in the commit view) and delete it there. The file will remain in the old commits. If you want to remove the file from the repository history, see Git Tools - Rewriting History. Note that this will change all commit IDs after the first removed or changed commit. This means anyone who already has a copy of your repository and tries to fetch updates will have to manually accept the modified history. In the latter case, the file might still show up in cached data. It it's sensitive and must be really gone, you'll have to contact GitHub support after rewriting the history (see the red box near the top). |
Beta Was this translation helpful? Give feedback.
-
|
I have the same problem |
Beta Was this translation helpful? Give feedback.
-
|
For more information see |
Beta Was this translation helpful? Give feedback.
-
|
i have the same issue |
Beta Was this translation helpful? Give feedback.




Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Product Feedback
Body
The delete option is unclickable and i want to delete a file from my repository. I don't see the delete bin button as well!
Is this something new with github? I have been able to delete a file before but not now!
Can anyone please help?
Beta Was this translation helpful? Give feedback.
All reactions