# deleteRestaurantEntity

> Required permission: RestaurantWrite

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

```graphql
deleteRestaurantEntity(
  restaurantId: ID!
  restaurantEntityId: ID!
): Void
```

## Arguments

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

## Returns

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

## Example

```graphql
mutation DeleteRestaurantEntity($restaurantId: ID!, $restaurantEntityId: ID!) {
  deleteRestaurantEntity(restaurantId: $restaurantId, restaurantEntityId: $restaurantEntityId)
}
```

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