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.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With