API reference

deleteMenuCategory

Required permission: RestaurantMenuWrite

graphql
deleteMenuCategory(
  restaurantId: ID!
  menuCategoryId: ID!
  recursive: Boolean
): DeletionStatus

Arguments

Name Type Description
restaurantId ID!
menuCategoryId ID!
recursive Boolean

Returns

DeletionStatus

Example

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