# place.hud.deleteChat

> Delete one of the person's chats for good, stopping its answer if the model is writing one. Requires auth: the workspace's web session (its cookie, with X-HUD: 1 and the server's own Origin on a procedure) 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.deleteChat)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:3tzbz4pml36u4mkresb6pdhv/place.hud.deleteChat/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:3tzbz4pml36u4mkresb6pdhv/place.hud.deleteChat/analytics)

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

Type: procedure · POST

### Input (application/json)

- `chat` (string, required)
  - Constraints: minLength: 12, maxLength: 12

### Output (application/json)


### Errors

- `NotFound`: No chat of this id is the person's.
- `InvalidRequest`: The input is not what the method takes.
- `AuthRequired`: No live web session or HUD access token: sign in.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Delete one of the person's chats for good, stopping its answer if the model is writing one. Requires auth: the workspace's web session (its cookie, with X-HUD: 1 and the server's own Origin on a procedure) or a HUD access token as Bearer.",
      "errors": [
        {
          "description": "No chat of this id is the person's.",
          "name": "NotFound"
        },
        {
          "description": "The input is not what the method takes.",
          "name": "InvalidRequest"
        },
        {
          "description": "No live web session or HUD access token: sign in.",
          "name": "AuthRequired"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "chat": {
              "maxLength": 12,
              "minLength": 12,
              "type": "string"
            }
          },
          "required": [
            "chat"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {},
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "description": "Delete a chat.",
  "id": "place.hud.deleteChat",
  "lexicon": 1
}
```
