promotionDelete Mutation
Deletes a promotion.
Triggers the following webhook events:
- PROMOTION_DELETED (async): A promotion was deleted.
Applied directives
@webhookEventsInfo(asyncEvents: [PROMOTION_DELETED], syncEvents: [])
promotionDelete(externalReference: String, id: ID): PromotionDelete
Returns
Show return type
type PromotionDelete {
errors: [PromotionDeleteError!]!
promotion: Promotion
}Arguments
externalReference
externalReference · String
External ID of the promotion to remove.
Added in Saleor 3.23id
id · ID
The ID of the promotion to remove.
Schema: Saleor 3.23.43. Download SDL.