Skip to main content

deleteUOM

Requires permission products:product:delete.

Delete a unit of measure (a soft delete). Refused when the unit is the organization's default unit or is in use. Needs the products 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 DeleteUOM($id: String!) {
deleteUOM(id: $id)
}

Variables:

{
"id": "string"
}

Response:

{
"data": {
"deleteUOM": true
}
}
deleteUOM(
id: String!
): Boolean!

Arguments​

deleteUOM.id ● String! non-null scalar​

The ID of the unit of measure.

Type​

Boolean scalar​

The Boolean scalar type represents true or false.