blob: 103c9de3cb77bcf4ebd7c25c8f3a5df07063ca95 [file] [log] [blame] [view] [edit]
@PLUGIN@ delete
===============
NAME
----
@PLUGIN@ delete - Completely delete a project and all its changes
SYNOPSIS
--------
```
ssh -p @SSH_PORT@ @SSH_HOST@ @PLUGIN@ delete
[--yes-really-delete]
[--force]
[--preserve-git-repository]
<PROJECT>
```
DESCRIPTION
-----------
Deletes a project from the Gerrit installation, removing the Git
repository along with any changes associated with it.
ACCESS
------
Caller must be a member of a group that is granted the 'Delete Project'
capability (provided by this plugin) or the 'Administrate Server'
capability.
SCRIPTING
---------
This command is intended to be used in scripts.
OPTIONS
-------
`--yes-really-delete`
: Actually perform the deletion. If omitted, the command
will just output information about the deletion and then
exit.
`--force`
: Delete project even if it has open changes.
`--preserve-git-repository`
: Don't delete git repository directory.
EXAMPLES
--------
See if you can delete a project:
```
$ ssh -p @SSH_PORT@ @SSH_HOST@ @PLUGIN@ delete tools/gerrit
```
Completely delete a project:
```
$ ssh -p @SSH_PORT@ @SSH_HOST@ @PLUGIN@ delete --yes-really-delete tools/gerrit
```
SEE ALSO
--------
* [Access Control](../../../Documentation/access-control.html)