{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Remove a member from a subspace and cascade to its subspaces. Idempotent. Auth: OAuth as the authority with manage=update, or service auth from a subspace admin.",
      "errors": [
        {
          "name": "SpaceNotFound"
        },
        {
          "description": "The space is not governed by the subspace policy.",
          "name": "PolicyMismatch"
        },
        {
          "name": "NotAuthorized"
        },
        {
          "name": "AuthorityRequired"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "did": {
              "format": "did",
              "type": "string"
            },
            "space": {
              "description": "Reference to the subspace.",
              "format": "space-ref",
              "type": "string"
            }
          },
          "required": [
            "space",
            "did"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "us.off-the-clock.subspace.removeMember",
  "lexicon": 1
}
