# REJECT INVITATION

## Syntax <a href="#synopsis" id="synopsis"></a>

```sql
REJECT INVITATION invitation_id;
```

## Description <a href="#description" id="description"></a>

This command rejects an invitation that was sent to the current [#user](https://docs.deltastream.io/overview/core-concepts/access-control#user "mention") to join an [#organiation](https://docs.deltastream.io/overview/core-concepts/access-control#organiation "mention").

You can list pending user invitations with [list-invitations](https://docs.deltastream.io/reference/sql-syntax/command/list-invitations "mention").

### Arguments

#### invitation\_id

Specifies the `id` of the invitation to reject.

## Examples <a href="#example" id="example"></a>

```sh
<no-organization># LIST MY INVITATIONS;
+--------------------------------------+------------+-------------------------------------+
|  ID                                  |  Org Name  |  Invited By                         |
+======================================+============+=====================================+
| 19cded99-3014-431b-905c-a25354ea011c | test       | team_manager@deltastream.io         |
+--------------------------------------+------------+-------------------------------------+
<no-organization># REJECT INVITATION 19cded99-3014-431b-905c-a25354ea011c;
+------------+--------------------------------------+------------+------------------------------------------+
|  Type      |  Name                                |  Command   |  Summary                                 |
+============+======================================+============+==========================================+
| invitation | 19cded99-3014-431b-905c-a25354ea011c | UPDATE     | invitation to join organization          |
|            |                                      |            | "d39511ce-c918-4637-9524-163183452274"   |
|            |                                      |            | was rejected                             |
+------------+--------------------------------------+------------+------------------------------------------+
```
