Delete Repositories

Delete Repositories from Integration

Securityx-api-key
Request
path Parameters
org
required
string

Harness organization ID

project
required
string

Harness project ID

integration
required
string

A unique identifier for the integration created using the Create Integration API. This ID is returned in the response of the Create Integration API and must be provided as a path parameter when fetching integration details or repositories.

header Parameters
Harness-Account
required
string

Identifier field of the account the resource is scoped to. This is required for Authorization methods other than the x-api-key header. If you are using the x-api-key header, this can be skipped.

Request Body schema: application/json
include_all_repos
boolean
Default: false
Array of objects (RepoDetailsDTO)
Responses
200

Example response

delete/gateway/ssca-manager/v1/orgs/{org}/projects/{project}/integration/{integration}/repos
Request samples
application/json
{
  • "include_all_repos": false,
  • "repositories": [
    ]
}
Response samples
application/json
{
  • "all_repos_configured": true,
  • "missing_repos": {
    }
}

Delete Repositories from Repo Listing Page

Securityx-api-key
Request
header Parameters
Harness-Account
required
string

Identifier field of the account the resource is scoped to. This is required for Authorization methods other than the x-api-key header. If you are using the x-api-key header, this can be skipped.

Request Body schema: application/json

DeleteRepositoriesRequestBody

Array
repo_url
required
string

URL of the repo to be deleted

repo_branch
string
org_identifier
required
string

Org of the repository to be deleted.

project_identifier
required
string

Project of the repository to be deleted.

Responses
200

OK

400

Bad Request

500

Internal Server Error

delete/gateway/ssca-manager/v1/delete/repository
Request samples
application/json
[
  • {
    }
]