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