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

From **GitHub v3 REST API**.

`DELETE /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}`

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](#create-a-self-hosted-runner-group-for-an-organization)."
You must authenticate using an access token with the `admin:org` scope to use this endpoint.

## Parameters

### `org`

- Location: path
- Required: true
- Type: `string`

### `runner_group_id`

- Location: path
- Required: true
- Type: `integer`

Unique identifier of the self-hosted runner group.

### `repository_id`

- Location: path
- Required: true
- Type: `integer`

## Responses

### `204`

Response

## Request examples

### cURL

```shell
curl --request DELETE \
  --url {protocol}://{hostname}/api/v3/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}
```
