Skip to main content
Skip to main content

delete - Pricing Module Reference

Beta

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

This method deletes price sets by their IDs.

Example

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

async function removePriceSetRule (priceSetIds: string[]) {
const pricingService = await initializePricingModule()

await pricingService.delete(priceSetIds)
}

Parameters

idsstring[]Required
The IDs of the price sets 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 sets are successfully deleted.
Was this section helpful?