Skip to main content

deleteTaxRate

Requires permission products:tax:delete.

Deletes a tax rate. It is refused while the rate is still in a tax group, or while the catalog or the organization's defaults rely on it. Needs the tax delete permission.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

mutation DeleteTaxRate($id: ID!) {
deleteTaxRate(id: $id)
}

Variables:

{
"id": "id"
}

Response:

{
"data": {
"deleteTaxRate": true
}
}
deleteTaxRate(
id: ID!
): Boolean!

Arguments​

deleteTaxRate.id ● ID! non-null scalar​

The ID of the tax rate.

Type​

Boolean scalar​

The Boolean scalar type represents true or false.