# us.off-the-clock.subspace.removeMembers

> Remove members from a subspace in a single change, and cascade to its subspaces. DIDs that are not members are ignored. All or nothing: any refusal refuses the whole call. Auth: OAuth as the authority with manage=update, or service auth from a subspace admin.

- Kind: procedure
- Authority: subspace.off-the-clock.us
- Lexicon: 1
- Published by [off-the-clock.us](https://lexicon.garden/identity/did:plc:tevv7zpavtjtsvqrrwwipobt), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.subspace.removeMembers)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.subspace.removeMembers/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.subspace.removeMembers/analytics)

## Procedure (`us.off-the-clock.subspace.removeMembers`)

Type: procedure · POST

### Input (application/json)

- `dids` (array, required)
  - Constraints: maxLength: 100
  - `items` (string · did)
- `space` (string · space-ref, required): Reference to the subspace.

### Errors

- `SpaceNotFound`: No description in schema.
- `PolicyMismatch`: The space is not governed by the subspace policy.
- `NotAuthorized`: No description in schema.
- `AuthorityRequired`: Removing an admin's entry requires the authority.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Remove members from a subspace in a single change, and cascade to its subspaces. DIDs that are not members are ignored. All or nothing: any refusal refuses the whole call. 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"
        },
        {
          "description": "Removing an admin's entry requires the authority.",
          "name": "AuthorityRequired"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "dids": {
              "items": {
                "format": "did",
                "type": "string"
              },
              "maxLength": 100,
              "type": "array"
            },
            "space": {
              "description": "Reference to the subspace.",
              "format": "space-ref",
              "type": "string"
            }
          },
          "required": [
            "space",
            "dids"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "us.off-the-clock.subspace.removeMembers",
  "lexicon": 1
}
```
