# social.colibri.beta.community.deleteInvitation

> Published by [colibri.social](https://lexicon.garden/identity/did:plc:mprdjqjluoswa7awzggaggj3)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:mprdjqjluoswa7awzggaggj3/social.colibri.beta.community.deleteInvitation)
- [Documentation](https://lexicon.garden/lexicon/did:plc:mprdjqjluoswa7awzggaggj3/social.colibri.beta.community.deleteInvitation/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:mprdjqjluoswa7awzggaggj3/social.colibri.beta.community.deleteInvitation/examples)

## Definitions

### `social.colibri.beta.community.deleteInvitation`

**Type**: `procedure`

Deletes an invitation code.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `code` | `string` | Yes | The invitation code to delete. |
| `community` | `string` (did) | Yes | The community the invitation belongs to. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|

#### Errors

- **AuthRequired**: The request is missing, malformed, or unverifiable service auth.
- **Forbidden**: The requesting user lacks the invitation.delete permission.
- **CommunityNotFound**: No community exists with that DID.
- **InvitationNotFound**: No invitation exists with that code.

## Raw Schema

```json
{
  "id": "social.colibri.beta.community.deleteInvitation",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "required": [
            "community",
            "code"
          ],
          "properties": {
            "code": {
              "type": "string",
              "description": "The invitation code to delete."
            },
            "community": {
              "type": "string",
              "format": "did",
              "description": "The community the invitation belongs to."
            }
          }
        },
        "encoding": "application/json"
      },
      "errors": [
        {
          "name": "AuthRequired",
          "description": "The request is missing, malformed, or unverifiable service auth."
        },
        {
          "name": "Forbidden",
          "description": "The requesting user lacks the invitation.delete permission."
        },
        {
          "name": "CommunityNotFound",
          "description": "No community exists with that DID."
        },
        {
          "name": "InvitationNotFound",
          "description": "No invitation exists with that code."
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [],
          "properties": {}
        },
        "encoding": "application/json"
      },
      "description": "Deletes an invitation code."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
