# deleteEmployee

> Required permission: RestaurantPosWrite

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

```graphql
deleteEmployee(
  restaurantId: ID!
  employeeId: ID!
): DeletionStatus
```

## Arguments

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

## Returns

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

## Example

```graphql
mutation DeleteEmployee($restaurantId: ID!, $employeeId: ID!) {
  deleteEmployee(restaurantId: $restaurantId, employeeId: $employeeId)
}
```

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