Skip to main content
DELETE
Remove a repository 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 the repository. Otherwise the request is rejected with 403.

Behavior

Disables indexing and clears all configured branches for the specified repository.

Authorizations

Authorization
string
header
required

Service User credential (prefix: cog_)

Path Parameters

repository_path
string
required
org_id
string
required

Organization ID (prefix: org-)

Example:

"org-abc123def456"

Response

Successful Response

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