---
title: "Delete a self-hosted runner from a repository"
method: DELETE
path: "/repos/{owner}/{repo}/actions/runners/{runner_id}"
tags: ["actions"]
---

# Delete a self-hosted runner from a repository

`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.
GitHub Apps must have the `administration` permission for repositories and the `organization_self_hosted_runners` permission for organizations.
Authenticated users must have admin access to repositories or organizations, or the `manage_runners:enterprise` scope for enterprises, to use these endpoints.

## Path parameters

- `owner` string, required
- `repo` string, required
- `runner_id` integer, required

## Response `204`

Response

---

[API](https://skmtc.net/github/apis/github-v3-rest-api-6.md) · [All operations](https://skmtc.net/github/apis/github-v3-rest-api-6/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/github-v3-rest-api-6/versions/15db3fa0759b/schema)
