Skip to main content
Skip to main content

deletePriceListRules - Pricing Module Reference

Beta

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

This method is used to delete price list rules.

Example

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

async function deletePriceListRules (priceListRuleIds: string[]) {
const pricingService = await initializePricingModule()

await pricingService.deletePriceListRules(priceListRuleIds)
}

Parameters

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

Returns

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