# deleteDeliveryTimeArea

> Required permission: RestaurantWrite

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

```graphql
deleteDeliveryTimeArea(
  restaurantId: ID!
  deliveryTimeAreaId: ID!
): Restaurant
```

## Arguments

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

## Returns

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

## Example

```graphql
mutation DeleteDeliveryTimeArea($restaurantId: ID!, $deliveryTimeAreaId: ID!) {
  deleteDeliveryTimeArea(restaurantId: $restaurantId, deliveryTimeAreaId: $deliveryTimeAreaId) {
    id
    autoAcceptDeliveryHeroOrders
    deliveryHeroChainId
    deliveryHeroEnabled
    deliveryHeroVendorId
    deliveryHeroWebhookUrl
  }
}
```

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