You can delete any file within your repositories on GitHub Enterprise.

Tip: If you try to delete a file in a repository that you don’t have access to, we'll fork the project to your user account and help you send a pull request to the original repository after you commit your change.

  1. Browse to the file in your repository that you want to delete.
  2. At the top of the file, click .
  3. Enter a commit message describing why you deleted the file, and click Commit to commit the change to the repository. Committing the file deletion

Attention: Since Git is a version control system, it always has your back if you need to recover the file later. If you really, really need to completely remove a file from a repository for some reason, such as a sensitive file that was accidentally committed, you should follow the steps in our article about removing sensitive data.