Skip to main content
Skip to main content

deleteShippingMethods - Cart Module Reference

This documentation provides a reference to the deleteShippingMethods method. This belongs to the Cart Module.

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

This method deletes shipping methods by their IDs.

Example

await cartModuleService.deleteShippingMethods([
"casm_123",
"casm_321",
])

Parameters

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

Returns

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

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

This method deletes a shipping method by its ID.

Example

await cartModuleService.deleteShippingMethods("casm_123")

Parameters

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

Returns

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