# dev.knotless.removeRunner

> Takes an account out of the runners the repository's record names, as `knotless runner remove` does, as the account logged in to this appview's web pages, which must be its owner: its checks of the repository no longer show. A private repository's runner stays a member of it until unshared. Answers with the runners it names after. Requires the session cookie the pages' login sets, or an admin's service token.

- Kind: procedure
- Authority: knotless.dev
- Lexicon: 1
- Published by [lexicons.knotless.dev](https://lexicon.garden/identity/did:plc:yqsg7znbbhfmj3a2nrpnaerk), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:yqsg7znbbhfmj3a2nrpnaerk/dev.knotless.removeRunner)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:yqsg7znbbhfmj3a2nrpnaerk/dev.knotless.removeRunner/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:yqsg7znbbhfmj3a2nrpnaerk/dev.knotless.removeRunner/analytics)

## Procedure (`dev.knotless.removeRunner`)

Type: procedure · POST

### Input (application/json)

- `repo` (string · at-uri, required): The repository's dev.knotless.repo record, as dev.knotless.getRepo takes it.
- `runner` (string · at-identifier, required): The account a knotless runner reports as, by handle or DID.

### Output (application/json)

- `schema` (ref)
  - Reference: `dev.knotless.listRunners#runners`

### Errors

- `NotFound`: No such repository, or no such account.
- `AuthenticationRequired`: No account is logged in to the pages, or its session has ended.
- `UpstreamFailure`: Nothing changed, as the reason says: the account is not the owner.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Takes an account out of the runners the repository's record names, as `knotless runner remove` does, as the account logged in to this appview's web pages, which must be its owner: its checks of the repository no longer show. A private repository's runner stays a member of it until unshared. Answers with the runners it names after. Requires the session cookie the pages' login sets, or an admin's service token.",
      "errors": [
        {
          "description": "No such repository, or no such account.",
          "name": "NotFound"
        },
        {
          "description": "No account is logged in to the pages, or its session has ended.",
          "name": "AuthenticationRequired"
        },
        {
          "description": "Nothing changed, as the reason says: the account is not the owner.",
          "name": "UpstreamFailure"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "repo": {
              "description": "The repository's dev.knotless.repo record, as dev.knotless.getRepo takes it.",
              "format": "at-uri",
              "type": "string"
            },
            "runner": {
              "description": "The account a knotless runner reports as, by handle or DID.",
              "format": "at-identifier",
              "type": "string"
            }
          },
          "required": [
            "repo",
            "runner"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "ref": "dev.knotless.listRunners#runners",
          "type": "ref"
        }
      },
      "type": "procedure"
    }
  },
  "description": "Stops naming an account among a repository's runners, as its owner logged in to this appview's pages.",
  "id": "dev.knotless.removeRunner",
  "lexicon": 1
}
```
