Закрытие и удаление проекты
Сведения о закрытии, повторном открытии и окончательном удалении проект.
Deleting a project
You can delete a project to permanently remove it.
- Navigate to your project.
- In the top-right, click

to open the menu.
Closing a project
You can close a project to remove it from the list of projects but retain the contents and ability to re-open the project later.
- Navigate to your project.
- In the top-right, click

to open the menu.
Re-opening an organization project
You can reopen a previously closed project.
-
In the upper-right corner of GitHub.com, select your profile photo, then click

Your organizations.

Projects.

to open the menu.
Re-opening a user project
You can reopen a previously closed project.
-
In the top right corner of GitHub.com, click your profile photo, then click Your profile.

Projects.

to open the menu.
Удаление файлов в репозитории
Вы можете удалить отдельный файл или весь каталог в репозитории на GitHub.
Кто может использовать эту функцию.
People with write permissions can delete files or directories in a repository.
About file and directory deletion
You can delete an individual file in your repository or an entire directory, including all the files in the directory.
If you try to delete a file or directory in a repository that you don’t have write permissions to, we’ll fork the project to your personal account and help you send a pull request to the original repository after you commit your change. For more information, see «About pull requests.»
If the file or directory you deleted contains sensitive data, the data will still be available in the repository’s Git history. To completely remove the file from GitHub, you must remove the file from your repository’s history. For more information, see «Removing sensitive data from a repository.»
Deleting a file
- Browse to the file in your repository that you want to delete.
- In the top-right corner, select the

dropdown menu, then click Delete file.


Below the commit message fields, decide whether to add your commit to the current branch or to a new branch. If your current branch is the default branch, you should choose to create a new branch for your commit and then create a pull request. For more information, see «Creating a pull request.»
Deleting a directory
- Browse to the directory in your repository that you want to delete.
- In the top-right corner, select the

dropdown menu, then click Delete directory.


Below the commit message fields, decide whether to add your commit to the current branch or to a new branch. If your current branch is the default branch, you should choose to create a new branch for your commit and then create a pull request. For more information, see «Creating a pull request.»
Удаление репозитория
Вы можете удалить любой репозиторий или вилку, если вы являетесь владельцем организации или имеете права администратора для репозитория или вилки. При удалении репозитория, в котором создана вилка, вышестоящий репозиторий не удаляется.
Only members with owner privileges for an organization or admin privileges for a repository can delete an organization repository. If Allow members to delete or transfer repositories for this organization has been disabled, only organization owners can delete organization repositories. For more information, see «Repository roles for an organization.»
Deleting a public repository will not delete any forks of the repository.
Warnings:
- Deleting a repository will permanently delete release attachments and team permissions. This action cannot be undone.
- Deleting a private repository will delete all forks of the repository.
Some deleted repositories can be restored within 90 days of deletion. For more information, see «Restoring a deleted repository.»
- On GitHub.com, navigate to the main page of the repository.
- Under your repository name, click
Settings. If you cannot see the «Settings» tab, select the

dropdown menu, then click Settings.
Удаление сайта GitHub Pages
People with admin or maintainer permissions for a repository can delete a GitHub Pages site.
GitHub Pages is available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see «GitHub’s plans.»
Удаление сайта
Вы можете удалить сайт двумя способами:
- Удалите репозиторий. Дополнительные сведения см. в разделе «AUTOTITLE».
- Измените источник на None ветвь. Дополнительные сведения см. в разделе «Удаление сайта», изменив источник ниже.
Если вы хотите удалить текущее развертывание сайта, но не хотите удалить сайт, вы можете отменить публикацию сайта. Дополнительные сведения см. в разделе «AUTOTITLE».
Удаление сайта путем изменения источника
- В GitHubперейдите в репозиторий сайта.
- Под именем репозитория щелкните
Параметры. Если вкладка «Параметры» не отображается, выберите раскрывающееся меню

и щелкните Параметры.

Pages.