Skip to main content
Skip to main content

deleteTags - Product Module Reference

Beta

This documentation provides a reference to the deleteTags method. This belongs to the Product Module.

This method is used to delete product tags by their ID.

Example

import {
initialize as initializeProductModule,
} from "@medusajs/product"

async function deleteProductTags (ids: string[]) {
const productModule = await initializeProductModule()

await productModule.deleteTags(ids)

}

Parameters

productTagIdsstring[]Required
The IDs of the product tags to be deleted.
sharedContextContext
A context used to share resources, such as transaction manager, between the application and the module.

Returns

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