# ing.opn.booking.delete

> Deletes a booking from the host account. Only a booking that is over, cancelled or declined. Host only.

- Kind: procedure
- Authority: booking.opn.ing
- Lexicon: 1
- Published by [opn.ing](https://lexicon.garden/identity/did:plc:fd7yovynbzbli5i7m6tu76cl), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:fd7yovynbzbli5i7m6tu76cl/ing.opn.booking.delete)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:fd7yovynbzbli5i7m6tu76cl/ing.opn.booking.delete/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:fd7yovynbzbli5i7m6tu76cl/ing.opn.booking.delete/analytics)

## Procedure (`ing.opn.booking.delete`)

Type: procedure · POST

### Input (application/json)

- `uid` (string, required): The booking's id.
  - Constraints: maxLength: 64

### Output (application/json)

- `uid` (string, required): The booking's id.
  - Constraints: maxLength: 64

### Errors

- `BookingNotFound`: No description in schema.
- `BookingStillActive`: No description in schema.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Deletes a booking from the host account. Only a booking that is over, cancelled or declined. Host only.",
      "errors": [
        {
          "name": "BookingNotFound"
        },
        {
          "name": "BookingStillActive"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "uid": {
              "description": "The booking's id.",
              "maxLength": 64,
              "type": "string"
            }
          },
          "required": [
            "uid"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "uid": {
              "description": "The booking's id.",
              "maxLength": 64,
              "type": "string"
            }
          },
          "required": [
            "uid"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "ing.opn.booking.delete",
  "lexicon": 1
}
```
