# org.atgrp.leaveGroup

Leave a group, deleting the caller's membership, which the group authored. The caller should also delete their confirmation. Requires service auth.

A method (procedure) in the Atmosphere Groups standard, as published on the network. The page: https://www.atmospheregroups.org/reference/lexicons/org-atgrp-leaveGroup/

- Published at: at://did:plc:4pt2cnpyvfgn5b7uxwn2shwv/com.atproto.lexicon.schema/org.atgrp.leaveGroup
- In the spec: https://www.atmospheregroups.org/spec/lexicons/org-atgrp-leaveGroup/, the same schema

## The schema as published

```json
{
  "id": "org.atgrp.leaveGroup",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "required": [
            "group"
          ],
          "properties": {
            "group": {
              "type": "string",
              "format": "did"
            }
          }
        },
        "encoding": "application/json"
      },
      "errors": [
        {
          "name": "GroupNotFound"
        }
      ],
      "description": "Leave a group, deleting the caller's membership, which the group authored. The caller should also delete their confirmation. Requires service auth."
    }
  },
  "lexicon": 1
}
```
