POST
/repos/{owner}/{repo}/actions/runners/remove-tokenCreate a remove token for a repository
Returns a token that you can pass to the config script to remove a self-hosted runner from an repository. The token expires after one hour.
For example, you can replace TOKEN in the following example with the registration token provided by this endpoint to remove your self-hosted runner from an organization:
./config.sh remove --token TOKEN
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.
- RetriesRetries up to 2×, 500ms backoff, 30s timeout.
ownerstringrequired
The account owner of the repository. The name is not case sensitive.
repostringrequired
The name of the repository without the `.git` extension. The name is not case sensitive.
201Response
tokenstringrequired
The token used for authentication
expires_atstringrequired
The time this token expires
permissionsobjectoptional
repositoriesarray<Repository>optional
The repositories this token has access to
single_filestringoptional
repository_selectionstringoptional
Describe whether all repositories have been selected or there's a selection involved