API reference

deleteDeliveryLocation

Required permission: RestaurantSettingsWrite

graphql
deleteDeliveryLocation(
  restaurantId: ID!
  deliveryLocationId: ID!
): DeletionStatus

Arguments

Name Type Description
restaurantId ID!
deliveryLocationId ID!

Returns

DeletionStatus

Example

graphql
mutation DeleteDeliveryLocation($restaurantId: ID!, $deliveryLocationId: ID!) {
  deleteDeliveryLocation(restaurantId: $restaurantId, deliveryLocationId: $deliveryLocationId)
}
bash
curl https://api.thelocoapp.com/graphql \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $LOCO_API_KEY" \
  -d '{"query": "mutation { deleteDeliveryLocation(...) { __typename } }"}'