gitea.cli.actions.runner.delete
delete
Remove one Actions runner from a repository, an organization, an account or the instance.
The registration is what is removed. A runner process that is still running keeps
trying to poll and is refused, so this is the server-side half of retiring one.
gitea-cli actions runner update --state disabled is the reversible alternative
when the machine is meant to come back.
Functions:
gitea.cli.actions.runner.delete.delete_runner_command
delete_runner_command(
ctx: Context,
runner_id: Annotated[
int, Option("--runner-id", help=RUNNER_ID_HELP)
],
owner: Annotated[
str | None, Option("--owner", help=OWNER_SCOPE_HELP)
] = None,
repository: Annotated[
str | None,
Option("--repository", help=REPOSITORY_SCOPE_HELP),
] = None,
admin: Annotated[
bool, Option("--admin", help=ADMIN_HELP)
] = False,
account_name: Annotated[
str | None,
Option(
"--account-name",
help="Name of the account to use for authentication.",
),
] = None,
token: Annotated[
str | None,
Option(
"--token",
help="Token for authentication. If not provided, the token from the specified account will be used.",
),
] = None,
base_url: Annotated[
str | None,
Option(
"--base-url",
help="Base URL of the Gitea platform. If not provided, the base URL from the specified account will be used.",
),
] = None,
) -> None
Remove one Actions runner from a repository, an organization, an account or the instance.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
ctx
|
Context
|
The Typer context. |
required |
runner_id
|
Annotated[int, Option('--runner-id', help=RUNNER_ID_HELP)]
|
The ID of the runner. |
required |
owner
|
Annotated[str | None, Option('--owner', help=OWNER_SCOPE_HELP)]
|
The owner of the repository, or the organization itself. |
None
|
repository
|
Annotated[str | None, Option('--repository', help=REPOSITORY_SCOPE_HELP)]
|
The name of the repository, to narrow the owner to one of its repositories. |
None
|
admin
|
Annotated[bool, Option('--admin', help=ADMIN_HELP)]
|
Whether to address the whole instance. |
False
|
account_name
|
Annotated[str | None, Option('--account-name', help='Name of the account to use for authentication.')]
|
Name of the account to use for authentication. |
None
|
token
|
Annotated[str | None, Option('--token', help='Token for authentication. If not provided, the token from the specified account will be used.')]
|
Token for authentication. |
None
|
base_url
|
Annotated[str | None, Option('--base-url', help='Base URL of the Gitea platform. If not provided, the base URL from the specified account will be used.')]
|
Base URL of the Gitea platform. |
None
|