Skip to main content
Log inSign up

Shopify uses cookies to provide necessary site functionality and improve your experience. By using our website, you agree to our privacy policy and our cookie policy.

Anchor to discountCodeBulkDelete

discountCodeBulkDelete

mutation

Requires Apps must have write_discounts access scope.

Deletes multiple code-based discounts asynchronously using one of the following:

  • A search query
  • A saved search ID
  • A list of discount code IDs

For example, you can delete discounts for all codes that match a search criteria, or delete a predefined set of discount codes.

The IDs of the discounts to delete.

The ID of the saved search for filtering discounts to delete. Saved searches represent customer segments that merchants have built in the Shopify admin.

The search query for filtering discounts.

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


Was this section helpful?

Anchor to DiscountCodeBulkDeletePayload returnsDiscountCodeBulkDeletePayload returns

The asynchronous job that deletes the discounts.

The list of errors that occurred from executing the mutation.


Was this section helpful?