Skip to main content
Anchor to discountAutomaticBulkDelete

discountAutomaticBulkDelete

mutation

Requires Apps must have write_discounts access scope.

Deletes multiple automatic discounts in a single operation, providing efficient bulk management for stores with extensive discount catalogs. This mutation processes deletions asynchronously to handle large volumes without blocking other operations.

For example, when cleaning up expired seasonal promotions or removing outdated automatic discounts across product categories, merchants can delete dozens of discounts simultaneously rather than processing each individually.

Use DiscountAutomaticBulkDelete to:

  • Remove multiple automatic discounts efficiently
  • Clean up expired or obsolete promotions
  • Streamline discount management workflows
  • Process large-scale discount removals asynchronously

The operation returns a job object for tracking deletion progress and any validation errors encountered during processing.

Learn more about discount management.

[ID!]

The IDs of the automatic discounts to delete.

ID

The ID of the saved search to use for filtering automatic discounts to delete.

String

The search query for filtering automatic discounts to delete.

For more information on the list of supported fields and search syntax, refer to the AutomaticDiscountNodes query section.


Was this section helpful?

Anchor to DiscountAutomaticBulkDeletePayload returnsDiscountAutomaticBulkDeletePayload returns

Job

The asynchronous job removing the automatic discounts.

[DiscountUserError!]!
non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?