Skip to main content
Skip to main content

deletePriceLists - Pricing Module Reference

Beta

This documentation provides a reference to the deletePriceLists method. This belongs to the Pricing Module.

This method is used to delete price lists.

Example

import {
initialize as initializePricingModule,
} from "@medusajs/pricing"

async function deletePriceLists (ids: string[]) {
const pricingService = await initializePricingModule()

await pricingService.deletePriceLists(ids)
}

Parameters

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

Returns

PromisePromise<void>Required
Resolves when the price lists are deleted successfully.
Was this section helpful?