Sample - GitHub REST API
DELETE/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}

Remove repository access to a self-hosted runner group in an organization

Removes a repository from the list of selected repositories that can access a self-hosted runner group. The runner group must have visibility set to selected. For more information, see "Create a self-hosted runner group for an organization."

OAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

3 parameters
orgstringrequired
The organization name. The name is not case sensitive.
runner_group_idintegerrequired
Unique identifier of the self-hosted runner group.
repository_idintegerrequired
The unique identifier of the repository.

1 status code
204Response