C. Command-Line Reference : delete-repo
   
delete-repo
delete repository
Usage
gitcentric delete-repo <reponame> [--force] [--noNotify] --yes-really-delete
[--help(-h)] [--]
Description
The gitcentric delete-repo command deletes the repository identified by the <reponame>. This command completely removes the repository -- including all its changes and its Git repository -- from the GitCentric installation. It also removes configuration information specified on the AccuRev Connector panel -- AccuRev server connection details, branch-stream mappings, and whether or not you are associating issues with commits.This command requires the delete-project.jar file that is installed to <gc_home>/site/plugins. GitCentric displays an error message if it cannot locate this file when you run the delete-repo command.
Cautions and Restrictions
Before executing the delete-repo command, be aware of the following cautions and restrictions:
You cannot undo a delete-repo command. As such, you should use it only with extreme care, and ensure that you have taken normal precautions like backing up any important data.
The delete-repo command removes the repository only on the server on which the command is run. In a master/slave environment, if you delete a repository from the GitCentric master server, you must also delete that repository from any of the slaves.
You cannot delete a repository that uses a submodule subscription without first removing the submodule registration.
You can run the delete-repo command only if you are a member of a group that has Administrate Server permissions.
Options
<reponame>
The repository you want to delete.
[--force]
Delete the repository even if it has open changes.
--help, -h
Display the help for this command.
[--noNotify]
Do not notify the GitCentric bridge of the configuration change.
--yes-really-delete
Required in order to execute the command.
--
"End-of-options" marker. See Basic Syntax on page 89 for more details.
Examples
Delete the "test_repo" repository regardless of whether or not it has open changes. Do not notify the GitCentric bridge.
> ssh -p 29418 mylogin@myserver gitcentric delete-repo test_repo --force
--noNotify --yes-really-delete
Delete the "acme" repository only if it has no open changes; notify the GitCentric bridge.
> ssh -p 29418 mylogin@myserver gitcentric delete-repo acme --yes-really-delete
Access
Only users in a group with Administrate Server permissions.
See Also
Basic Syntax on page 89, config-repo, ls-repo