Skip to main content

categoryDelete Mutation

Deletes a category.

Requires the MANAGE_PRODUCTSpermission.
categoryDelete(
externalReference: String
id: ID
): CategoryDelete
Details
type CategoryDelete {
productErrors: [ProductError!]! @deprecated
errors: [ProductError!]!
category: Category
}

Arguments​

externalReference ● String​

External ID of a category to delete.

Added in Saleor 3.23

id ● ID​

ID of a category to delete.

Type​

CategoryDelete​

Deletes a category.

Requires the MANAGE_PRODUCTSpermission.