How To Delete File In GitHub?

Open the repository on GitHub

Navigate to the file you want to delete

Open the file

Click the trash can icon or Delete this file

Review the commit message

Add an optional commit message

Choose whether to commit directly to the branch or create a new pull request

Click Commit changes or Propose changes

If using Git locally, run `git rm `

Commit the change with `git commit -m “Delete file”`

Push the commit with `git push`

Suggested for You

Trending Today