Skip to main content
Skip to main content

deleteCurrencies - Pricing Module Reference

Beta

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

This method is used to delete currencies based on their currency code.

Example

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

async function deleteCurrencies () {
const pricingService = await initializePricingModule()

await pricingService.deleteCurrencies(["USD"])

}

Parameters

currencyCodesstring[]Required
Currency codes of the currencies to delete.
sharedContextContext
A context used to share resources, such as transaction manager, between the application and the module.

Returns

PromisePromise<void>Required
Resolves once the currencies are deleted.
Was this section helpful?