Skip to main content
Skip to main content

delete - Promotion Module Reference

This documentation provides a reference to the delete method. This belongs to the Promotion Module.

delete(ids, sharedContext?): Promise<void>

This method deletes promotions by their IDs.

Example

await promotionModuleService.delete([
"promo_123",
"promo_321",
])

Parameters

idsstring[]Required
The IDs of the promotion.
sharedContextContext
A context used to share resources, such as transaction manager, between the application and the module.

Returns

PromisePromise<void>Required
Resolves when the promotions are deleted.

delete(ids, sharedContext?): Promise<void>

This method deletes a promotion by its ID.

Example

await promotionModuleService.delete("promo_123")

Parameters

idsstringRequired
The IDs of the promotion.
sharedContextContext
A context used to share resources, such as transaction manager, between the application and the module.

Returns

PromisePromise<void>Required
Resolves when the promotion is deleted.
Was this section helpful?