# ai.newnal.illi.schedule.deleteEntry

> Root or main admin deletes a schedule entry (both records of a grouped entry). For a recurring entry, scope says what to delete: all (default), this one occurrence (occurrenceStartAt required; an exclusion is added), or this and the following ones (the rule is ended before it).

- Kind: procedure
- Authority: schedule.illi.newnal.ai
- Lexicon: 1
- Published by [illi-service.newnal.id](https://lexicon.garden/identity/did:plc:uztm7bi2ce42dez3uu3qafro), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:uztm7bi2ce42dez3uu3qafro/ai.newnal.illi.schedule.deleteEntry)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:uztm7bi2ce42dez3uu3qafro/ai.newnal.illi.schedule.deleteEntry/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:uztm7bi2ce42dez3uu3qafro/ai.newnal.illi.schedule.deleteEntry/analytics)

## Procedure (`ai.newnal.illi.schedule.deleteEntry`)

Type: procedure · POST

### Input (application/json)

- `homeId` (string · tid, required)
- `occurrenceStartAt` (string · datetime)
- `requestKey` (string, required): Idempotency key chosen by the client; a replay with the same key and input returns the first result.
  - Constraints: minLength: 1, maxLength: 64
- `rkey` (string · record-key, required)
- `scope` (string)
  - Constraints: default: "all", knownValues: all | this | following

### Output (application/json)

- `deleted` (boolean, required)

### Errors

- `NotMember`: No description in schema.
- `NotAdmin`: No description in schema.
- `HomeNotFound`: No description in schema.
- `EntryNotFound`: No description in schema.
- `DelegationUnavailable`: No description in schema.
- `PdsUnavailable`: No description in schema.
- `RequestConflict`: No description in schema.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Root or main admin deletes a schedule entry (both records of a grouped entry). For a recurring entry, scope says what to delete: all (default), this one occurrence (occurrenceStartAt required; an exclusion is added), or this and the following ones (the rule is ended before it).",
      "errors": [
        {
          "name": "NotMember"
        },
        {
          "name": "NotAdmin"
        },
        {
          "name": "HomeNotFound"
        },
        {
          "name": "EntryNotFound"
        },
        {
          "name": "DelegationUnavailable"
        },
        {
          "name": "PdsUnavailable"
        },
        {
          "name": "RequestConflict"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "homeId": {
              "format": "tid",
              "type": "string"
            },
            "occurrenceStartAt": {
              "format": "datetime",
              "type": "string"
            },
            "requestKey": {
              "description": "Idempotency key chosen by the client; a replay with the same key and input returns the first result.",
              "maxLength": 64,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9._:-]+$",
              "type": "string"
            },
            "rkey": {
              "format": "record-key",
              "type": "string"
            },
            "scope": {
              "default": "all",
              "knownValues": [
                "all",
                "this",
                "following"
              ],
              "type": "string"
            }
          },
          "required": [
            "homeId",
            "rkey",
            "requestKey"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "deleted": {
              "type": "boolean"
            }
          },
          "required": [
            "deleted"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "ai.newnal.illi.schedule.deleteEntry",
  "lexicon": 1
}
```
