Skip to main content
DELETE
Bulk remove repositories from indexing

Permissions

Requires a service user or personal access token. The permission check depends on how repository access is managed for your organization:
  • Organization-level permissions: the caller needs the IndexOrgRepositories permission at the organization level.
  • Granular repository grants: IndexOrgRepositories is not checked. The caller needs the Read permission at the organization level, plus both the repo.use_read and repo.index grants on every repository in the request. If any repository is missing either grant, the entire request is rejected with 403 and no repositories are removed.

Behavior

Disables indexing and clears all configured branches for the specified repositories. Returns 404 if any of the specified repositories are not found.

Authorizations

Authorization
string
header
required

Service User credential (prefix: cog_)

Path Parameters

org_id
string
required

Organization ID (prefix: org-)

Example:

"org-abc123def456"

Body

application/json
repository_paths
string[]
required
Required array length: 1 - 100 elements

Response

Successful Response

branches
string[]
required
indexing_enabled
boolean
required
repository_path
string
required
indexing_status
RepoIndexingStatusResponse · object | null