# zone.stratos.enrollment.unenroll

> Published by [lexicon.northsky.app](https://lexicon.garden/identity/did:plc:6uxgo3ypovauub7nblwylqyv)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:6uxgo3ypovauub7nblwylqyv/zone.stratos.enrollment.unenroll)
- [Documentation](https://lexicon.garden/lexicon/did:plc:6uxgo3ypovauub7nblwylqyv/zone.stratos.enrollment.unenroll/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:6uxgo3ypovauub7nblwylqyv/zone.stratos.enrollment.unenroll/examples)

## Definitions

### `zone.stratos.enrollment.unenroll`

**Type**: `procedure`

Unenroll from the Stratos service, revoking the session and deleting the enrollment record from the user's PDS.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `success` | `boolean` | No |  |

#### Errors

- **NotEnrolled**
- **AuthRequired**

## Raw Schema

```json
{
  "id": "zone.stratos.enrollment.unenroll",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "properties": {}
        },
        "encoding": "application/json"
      },
      "errors": [
        {
          "name": "NotEnrolled"
        },
        {
          "name": "AuthRequired"
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "properties": {
            "success": {
              "type": "boolean"
            }
          }
        },
        "encoding": "application/json"
      },
      "description": "Unenroll from the Stratos service, revoking the session and deleting the enrollment record from the user's PDS."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
