# dev.knotless.leaveOrg

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

✓ This is the authoritative definition for this NSID.

## Description

Takes the caller out of an organization they left by deleting their dev.knotless.orgAcceptance record, through the gateway the organization delegated writes to: out of its records, its space and its private repositories' spaces, but for repositories shared with them on their own. The membership ended with the record; this takes back what the organization had let them read. Requires a service token from the caller's PDS, audience the gateway's DID, for this method.

## Links

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

## Definitions

### `dev.knotless.leaveOrg`

**Type**: `procedure`

Answers where the caller stood before.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `org` | `string` (did) | Yes | The organization. |

#### Output

**Encoding**: `application/json`

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Answers where the caller stood before.",
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "org": {
              "description": "The organization.",
              "format": "did",
              "type": "string"
            }
          },
          "required": [
            "org"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "ref": "dev.knotless.removeOrgMember#removed",
          "type": "ref"
        }
      },
      "type": "procedure"
    }
  },
  "description": "Takes the caller out of an organization they left by deleting their dev.knotless.orgAcceptance record, through the gateway the organization delegated writes to: out of its records, its space and its private repositories' spaces, but for repositories shared with them on their own. The membership ended with the record; this takes back what the organization had let them read. Requires a service token from the caller's PDS, audience the gateway's DID, for this method.",
  "id": "dev.knotless.leaveOrg",
  "lexicon": 1
}
```
