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.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ” owner
required
string
The account owner of the repository. The name is not case sensitive.
repo
required
string
The name of the repository without the .git extension. The name is not case sensitive.
runner_id
required
integer
Unique identifier of the self-hosted runner.
Responses
Section titled “ Responses ”Response
Validation failed, or the endpoint has been spammed.
Media type application/json
Validation Error Simple
Validation Error Simple
object
message
required
string
documentation_url
required
string
errors
Array<string>
Example generated
{ "message": "example", "documentation_url": "example", "errors": [ "example" ]}