Skip to content

Mass Delete Cart Rules

Deletes several cart rules in one call — the Mass Delete action on the admin Marketing → Promotions → Cart Rules datagrid.

TIP

New here? Read the Cart Rules overview for what a cart rule does and how its fields behave.

Operation

OperationTypePurpose
createAdminMarketingCartRuleMassDeleteMutationDelete multiple cart rules

Details

  • Requires an admin Bearer token and the marketing.promotions.cart_rules.delete permission.
  • Pass the numeric rule ids in indices. Non-existent ids are silently skipped (returned in skipped); the ids actually removed are returned in deleted.
  • An empty or missing indices list returns a 422 error.

Input fields

FieldTypeRequiredNotes
indicesArrayYesNon-empty list of numeric rule ids to delete

Released under the MIT License.