GitRoot

Craft your forge, Build your project, Grow your community freely
 1<!--
 2SPDX-FileCopyrightText: 2025 Romain Maneschi <romain@gitroot.dev>
 3
 4SPDX-License-Identifier: CC-BY-SA-4.0
 5-->
 6
 7# Delete a repository
 8
 9To delete a repository you can simply delete the lines conresponding and GitRoot will delete it.
10
11Open `.gitroot/repositories.yml` in the [root repository](../technicals/root_repository.md):
12
13```diff
14root:
15  defaultbranch: main
16  owners: []
17- repo1:
18-   defaultbranch: main
19```
20
21Commit your change and push `git add . && git commit -m "delete repo1 repository" && git push`. When the change will be in the [defaultBranch](../technicals/default_branch.md) GitRoot will delete it.