Skip to main content

promotionDelete Mutation

Deletes a promotion.

Requires the MANAGE_DISCOUNTSpermission.

Triggers the following webhook events:

  • PROMOTION_DELETED (async): A promotion was deleted.
promotionDelete(
externalReference: String
id: ID
): PromotionDelete
Details
type PromotionDelete {
errors: [PromotionDeleteError!]!
promotion: Promotion
}

Arguments​

externalReference ● String​

External ID of the promotion to remove.

Added in Saleor 3.23

id ● ID​

The ID of the promotion to remove.

Type​

PromotionDelete​

Deletes a promotion.

Requires the MANAGE_DISCOUNTSpermission.

Triggers the following webhook events:

  • PROMOTION_DELETED (async): A promotion was deleted.