Skip to main content
Skip to main content

delete - Region Module Reference

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

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

This method deletes regions by their IDs.

Example

await regionModuleService.delete(["reg_123", "reg_321"])

Parameters

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

Returns

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

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

This method deletes a region by its ID.

Example

await regionModuleService.delete("reg_123")

Parameters

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

Returns

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