# dev.knotless.unfollowActor

> Published by [lexicons.knotless.dev](https://lexicon.garden/identity/did:plc:yqsg7znbbhfmj3a2nrpnaerk)

✓ This is the authoritative definition for this NSID.

## Description

Unfollows an account as the account logged in to this appview's pages.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:yqsg7znbbhfmj3a2nrpnaerk/dev.knotless.unfollowActor)
- [Documentation](https://lexicon.garden/lexicon/did:plc:yqsg7znbbhfmj3a2nrpnaerk/dev.knotless.unfollowActor/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:yqsg7znbbhfmj3a2nrpnaerk/dev.knotless.unfollowActor/examples)

## Definitions

### `dev.knotless.unfollowActor`

**Type**: `procedure`

Deletes every dev.knotless.follow record naming the account from the account logged in to this appview's web pages, if any. Requires the session cookie the pages' login sets: the appview writes with the session it keeps for that account. Clients holding their own session write the record themselves.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `subject` | `string` (did) | Yes | The account to unfollow. |

#### Output

**Encoding**: `application/json`

#### Errors

- **ProfileNotFound**: No account by that DID.
- **AuthenticationRequired**: No account is logged in to the pages, or its session has ended.

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Deletes every dev.knotless.follow record naming the account from the account logged in to this appview's web pages, if any. Requires the session cookie the pages' login sets: the appview writes with the session it keeps for that account. Clients holding their own session write the record themselves.",
      "errors": [
        {
          "description": "No account by that DID.",
          "name": "ProfileNotFound"
        },
        {
          "description": "No account is logged in to the pages, or its session has ended.",
          "name": "AuthenticationRequired"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "subject": {
              "description": "The account to unfollow.",
              "format": "did",
              "type": "string"
            }
          },
          "required": [
            "subject"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "ref": "dev.knotless.defs#followState",
          "type": "ref"
        }
      },
      "type": "procedure"
    }
  },
  "description": "Unfollows an account as the account logged in to this appview's pages.",
  "id": "dev.knotless.unfollowActor",
  "lexicon": 1
}
```
