Skip to main content
Skip to main content

deleteReservationItemByLocationId - Inventory Module Reference

This documentation provides a reference to the deleteReservationItemByLocationId method. This belongs to the Inventory Module.

This method deletes reservation item(s) by the ID(s) of associated location(s).

Example

import { 
initialize as initializeInventoryModule,
} from "@medusajs/inventory"

async function deleteReservationItemByLocationId (
locationIds: string[]
) {
const inventoryModule = await initializeInventoryModule({})

await inventoryModule.deleteReservationItemByLocationId(
locationIds
)
}

Parameters

locationIdstring | string[]Required
The ID(s) of the associated location(s).
A context used to share resources, such as transaction manager, between the application and the module.

Returns

PromisePromise<void>Required
Resolves when the reservation item(s) are successfully restored.
Was this section helpful?