# place.hud.removeInstanceMembers

> Take members out of a private instance of a frame app, as its authority (com.atproto.memberspace.removeMembers on their own PDS): they no longer read it, and their entries are no longer in it. A member who is not its authority names only themselves, to leave: HUD asks as them where the space's policy allows it, else answers Forbidden saying to ask its authority. Requires auth: the workspace's web session (its cookie, with X-HUD: 1 and the server's own Origin) or a HUD access token as Bearer.

- Kind: procedure
- Authority: hud.place
- Lexicon: 1
- Published by [lexicons.hud.place](https://lexicon.garden/identity/did:plc:3tzbz4pml36u4mkresb6pdhv), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:3tzbz4pml36u4mkresb6pdhv/place.hud.removeInstanceMembers)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:3tzbz4pml36u4mkresb6pdhv/place.hud.removeInstanceMembers/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:3tzbz4pml36u4mkresb6pdhv/place.hud.removeInstanceMembers/analytics)

## Procedure (`place.hud.removeInstanceMembers`)

Type: procedure · POST

### Input (application/json)

- `instance` (string · at-uri, required): The instance's space, at:space/<authority DID>/place.hud.app.instance/<key>.
- `members` (array, required)
  - Constraints: minLength: 1, maxLength: 100
  - `items` (ref)
    - Reference: `#member`

### Output (application/json)

- `instance` (ref): The instance as it is now, to its authority; left out once the person has left it.
  - Reference: `place.hud.getInstance#instance`

### Errors

- `InvalidRequest`: The input is not what the method takes, or the authority naming themselves: delete it instead.
- `NotFound`: It was deleted.
- `Forbidden`: The person is not its authority and named someone else, or the space's policy lets only its authority take members out: ask them.
- `AuthRequired`: No live web session or HUD access token, or the person's sign-in at their PDS ended: sign in.
- `UpstreamFailure`: Their PDS refused or could not be reached; or their sign-in does not allow HUD's private instances, which the message says: sign in again.

## #member (`place.hud.removeInstanceMembers#member`)

Type: object

Someone to take out.

### Properties

- `did` (string · did, required)

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Take members out of a private instance of a frame app, as its authority (com.atproto.memberspace.removeMembers on their own PDS): they no longer read it, and their entries are no longer in it. A member who is not its authority names only themselves, to leave: HUD asks as them where the space's policy allows it, else answers Forbidden saying to ask its authority. Requires auth: the workspace's web session (its cookie, with X-HUD: 1 and the server's own Origin) or a HUD access token as Bearer.",
      "errors": [
        {
          "description": "The input is not what the method takes, or the authority naming themselves: delete it instead.",
          "name": "InvalidRequest"
        },
        {
          "description": "It was deleted.",
          "name": "NotFound"
        },
        {
          "description": "The person is not its authority and named someone else, or the space's policy lets only its authority take members out: ask them.",
          "name": "Forbidden"
        },
        {
          "description": "No live web session or HUD access token, or the person's sign-in at their PDS ended: sign in.",
          "name": "AuthRequired"
        },
        {
          "description": "Their PDS refused or could not be reached; or their sign-in does not allow HUD's private instances, which the message says: sign in again.",
          "name": "UpstreamFailure"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "instance": {
              "description": "The instance's space, at:space/<authority DID>/place.hud.app.instance/<key>.",
              "format": "at-uri",
              "type": "string"
            },
            "members": {
              "items": {
                "ref": "#member",
                "type": "ref"
              },
              "maxLength": 100,
              "minLength": 1,
              "type": "array"
            }
          },
          "required": [
            "instance",
            "members"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "instance": {
              "description": "The instance as it is now, to its authority; left out once the person has left it.",
              "ref": "place.hud.getInstance#instance",
              "type": "ref"
            }
          },
          "type": "object"
        }
      },
      "type": "procedure"
    },
    "member": {
      "description": "Someone to take out.",
      "properties": {
        "did": {
          "format": "did",
          "type": "string"
        }
      },
      "required": [
        "did"
      ],
      "type": "object"
    }
  },
  "description": "Take people out of a private instance, or leave one.",
  "id": "place.hud.removeInstanceMembers",
  "lexicon": 1
}
```
