Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

github: how do I delete an attachment in github issues?

Tags:

git

github

I am in need to remove an attachment in github issues. How do I do this. When you remove the issue comment, the attachment is still in github. How can I explicitly target to remove an attachment?

The format of such attachments is

https://github.com/<projectname>/<repo>/files/<somenumber>/<filename>.txt

Simple git rm does not work.

like image 850
Gregor von Laszewski Avatar asked Oct 19 '15 13:10

Gregor von Laszewski


People also ask

How do I delete individual files on GitHub?

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 issues on GitHub?

Navigate to the issue you want to delete. On the right side bar, under "Notifications", click Delete issue. To confirm deletion, click Delete this issue.

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.


1 Answers

It's not possible currently. GitHub allows you, to attach files (pdf, docx etc.) in comments, but there is no way to delete them.

The behavior is similar to images: you can upload it, but you can't delete it from their cloud.


Just in case you uploaded a file that really needs to be deleted, there is always a GitHub Support.

like image 169
Ionică Bizău Avatar answered Oct 10 '22 16:10

Ionică Bizău