Skip to main content
Skip to main content

delete - Stock Location Module Reference

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

This method is used to delete a stock location.

Example

import {
initialize as initializeStockLocationModule,
} from "@medusajs/stock-location"

async function deleteStockLocation (id:string) {
const stockLocationModule = await initializeStockLocationModule({})

await stockLocationModule.delete(id)
}

Parameters

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

Returns

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