Deletes the existing repository from the Git Integration for Jira app repository configuration.
url
{JiraBaseURL}/rest/gitplugin/1.0/repository
method
DELETE
Parameters
Field | Description |
---|---|
id | Integer. Required.
This is the ID of the existing repository. For example, |
deleteFiles | Boolean. Optional.
Default value is Important!
DO NOT use deleteFiles=true to repository files where origin points to an original repository path. For example:
If set to |
Response
Deletes the repository from the Git Integration for Jira app repository configuration. If the deleteFiles
parameter is set to true, the repository folder is also deleted from the Jira instance.
Examples
Example 1:
http://jira.yourorg.com/rest/gitplugin/1.0/repository?id=3&deleteFiles=true
Response:
{
"success": true
}
Example 2:
http://jira.yourorg.com/rest/gitplugin/1.0/repository?id=5
Response:
{
"success": false,
"error": "Repository with id=5 does not exist",
"advice": "Please try again with an existing repository id."
}
Repository REST APIs
Delete Existing Repository (this page)