Skip to content

Category — Mass Delete

Bulk-deletes a batch of categories. Equivalent to POST /api/admin/catalog/categories/mass-delete.

Operation

OperationTypePurpose
createAdminCategoryMassDeleteMutationDelete multiple categories at once

Input

FieldTypeNotes
indices[Int!]!Category ids to delete

Notes

  • All-or-nothing. Any non-deletable id (root, channel root) rejects the entire batch with errors[] carrying Root and channel-root categories cannot be deleted.
  • Unknown ids are silently skipped — they do not appear in deleted.

Released under the MIT License.