# deletePaymentMethod

> Required permission: RestaurantReportWrite

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

```graphql
deletePaymentMethod(
  restaurantId: ID!
  paymentMethodId: ID!
): DeletionStatus
```

## Arguments

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

## Returns

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

## Example

```graphql
mutation DeletePaymentMethod($restaurantId: ID!, $paymentMethodId: ID!) {
  deletePaymentMethod(restaurantId: $restaurantId, paymentMethodId: $paymentMethodId)
}
```

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