Skip to main content
Skip to main content

deleteCampaigns - Promotion Module Reference

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

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

This method deletes campaigns by their IDs.

Example

await promotionModuleService.deleteCampaigns(["procamp_123"])

Parameters

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

Returns

PromisePromise<void>Required
Resolves when the campaigns are deleted successfully.

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

This method deletes a campaign by its ID.

Example

await promotionModuleService.deleteCampaigns("procamp_123")

Parameters

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

Returns

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