# deleteUser

> Required permission: UserWrite

Source: https://docs.gastrogate.io/docs/api/mutations/deleteUser

```graphql
deleteUser(
  userId: ID!
): Void
```

## Arguments

| Name | Type | Description |
| --- | --- | --- |
| `userId` | [`ID`](https://docs.gastrogate.io/docs/api/types/ID.md)! |  |

## Returns

[`Void`](https://docs.gastrogate.io/docs/api/types/Void.md)

## Example

```graphql
mutation DeleteUser($userId: ID!) {
  deleteUser(userId: $userId)
}
```

```bash
curl https://api.thelocoapp.com/graphql \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $LOCO_API_KEY" \
  -d '{"query": "mutation { deleteUser(...) { __typename } }"}'
```
