Skip to main content
Skip to main content

delete - Store Module Reference

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

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

This method deletes stores by their IDs.

Example

await storeModuleService.delete(["store_123", "store_321"])

Parameters

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

Returns

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

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

This method deletes a store by its ID.

Example

await storeModuleService.delete("store_123")

Parameters

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

Returns

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