Skip to main content
Skip to main content

deleteInventoryItemLevelByLocationId - Inventory Module Reference

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

This method deletes the inventory item level(s) for the ID(s) of associated location(s).

Example

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

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

await inventoryModule.deleteInventoryItemLevelByLocationId(
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 inventory item level(s) are successfully restored.
Was this section helpful?