# Delete a self-hosted runner from a repository

From **GitHub v3 REST API**.

`DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}`

Forces the removal of a self-hosted runner from a repository. You can use this endpoint to completely remove the runner when the machine you were using no longer exists.

You must authenticate using an access token with the `repo`
scope to use this endpoint.

## Parameters

### `owner`

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

### `repo`

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

### `runner_id`

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

Unique identifier of the self-hosted runner.

## Responses

### `204`

Response

## Request examples

### cURL

```shell
curl --request DELETE \
  --url {protocol}://{hostname}/api/v3/repos/{owner}/{repo}/actions/runners/{runner_id}
```
