Skip to content

CMS Pages — Mass Delete

Equivalent to POST /api/admin/cms/pages/mass-delete.

Operation

OperationType
createAdminCmsPageMassDeleteMutation

Input

FieldTypeRequiredNotes
indices[Int!]!yesCMS page IDs to delete. Must be non-empty.

Behaviour

Bulk-deletes every page in indices in one call. Non-existent IDs are silently skipped — the operation does not fail the whole batch for a missing id. The response's deleted array lists the IDs actually removed; message is a human-readable summary. Each removed page also has its storefront redirects (url rewrites) cleaned up.

deleted is returned as a plain array of IDs over GraphQL.

Errors

ConditionResult
indices empty or missingvalidation error
Admin role lacks cms.deletepermission error

Released under the MIT License.