# deleteProjectInvitation

```graphql
mutation DeleteProjectInvitation($projectReference: ID!, $invitationId: ID!) {
  deleteProjectInvitation(projectReference: $projectReference, invitationId: $invitationId) {
    ok
  }
}
```

Delete an invitation. Requires project.invites.manage; API keys also need delete scope.

## Arguments

| Name               | Type | Required | Description                                                                                               |
| ------------------ | ---- | -------- | --------------------------------------------------------------------------------------------------------- |
| `projectReference` | ID!  | Yes      | Project UUID or slug.                                                                                     |
| `invitationId`     | ID!  | Yes      | Pending invitation ID in the selected project. An inaccessible or other-project invitation is not\_found. |

## Variables

```json
{
  "projectReference": "string",
  "invitationId": "string"
}
```

## Responses

| Status | Description                                          |
| ------ | ---------------------------------------------------- |
| 200    | The DeletionResult! in data.deleteProjectInvitation. |

## Call it

```bash
curl -X POST "https://api.veryfront.com/graphql" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "query": "mutation DeleteProjectInvitation($projectReference: ID!, $invitationId: ID!) {\n  deleteProjectInvitation(projectReference: $projectReference, invitationId: $invitationId) {\n    ok\n  }\n}",
  "variables": {
    "projectReference": "string",
    "invitationId": "string"
  }
}'
```

## Example response

```json
{
  "data": {
    "deleteProjectInvitation": {
      "ok": false
    }
  }
}
```
