# Github: How to delete files or folder?

**URL:** https://discourse.processing.org/t/github-how-to-delete-files-or-folder/14059
**Category:** Beginners
**Created:** [September 18, 2019, 9:33pm UTC](https://discourse.processing.org/t/github-how-to-delete-files-or-folder/14059 "2019-09-18T21:33:03Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)
#### Post date: [September 18, 2019, 9:33pm UTC](https://discourse.processing.org/t/github-how-to-delete-files-or-folder/14059/1 "2019-09-18T21:33:03Z")

</div>

Github: How to delete files or folder?

I don’t get it

I use the browser version

---

<div class="post-metadata">

### Author: ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)
#### Post date: [September 19, 2019, 1:41am UTC](https://discourse.processing.org/t/github-how-to-delete-files-or-folder/14059/2 "2019-09-19T01:41:58Z")

</div>

When we click on a GitHub file, a trash bin 🗑 icon shows up on the far right of the file header:  
[Help.GitHub.com/en/articles/deleting-files](http://Help.GitHub.com/en/articles/deleting-files)

---

<div class="post-metadata">

### Author: ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)
#### Post date: [September 19, 2019, 8:56am UTC](https://discourse.processing.org/t/github-how-to-delete-files-or-folder/14059/3 "2019-09-19T08:56:15Z")

</div>

To be honest I tried this but it said… can’t delete from the main… you need to make a branch…

But I didn’t want to do this

---

<div class="post-metadata">

### Author: ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)
#### Post date: [September 19, 2019, 3:41pm UTC](https://discourse.processing.org/t/github-how-to-delete-files-or-folder/14059/4 "2019-09-19T15:41:10Z")

</div>

> [@Chrisir](#):
>
> can’t delete from the main… you need to make a branch…

If that repo/fork is yours, you should be able to add/delete files directly at the `master` branch.

2 options should show up to you:

1. Commit directly to the `master` branch.
2. Create **a new branch** for this commit and start a pull request.

 ![js](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/3/3349d8c925c9c35dc260461f5dec3c9b1b0ceafb.jpeg)  
 ![js](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/4/485aec8d563bfcab1d9009d5a69eb23f02296ff1.jpeg)
