Skip to main content
Skip to main content

delete - Sales Channel Module Reference

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

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

This method deletes sales channel by their IDs.

Example

await salesChannelModuleService.delete(["sc_123", "sc_321"])

Parameters

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

Returns

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

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

This method deletes a sales channel by its ID.

Example

await salesChannelModuleService.delete("sc_123")

Parameters

idstringRequired
The ID of the sales channel.
sharedContextContext
A context used to share resources, such as transaction manager, between the application and the module.

Returns

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