---
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.

Authenticated users must have admin access to the repository to use this endpoint.

OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.

## Path parameters

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

## Response `204`

Response

## Other responses

- `422` — Validation failed, or the endpoint has been spammed.

---

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