Plugins

Removing Plugins

Plugins can also be removed from MPL Core Assets and MPL Core Collections.

Removing a Plugin from a MPL Core Asset

Removing a Plugin from a MPL Core Asset

import { publicKey } from '@metaplex-foundation/umi'
import { removePluginV1, PluginType } from '@metaplex-foundation/mpl-core'

const asset = publicKey('11111111111111111111111111111111')

await removePluginV1(umi, {
  asset: asset,
  pluginType: PluginType.Royalties,
}).sendAndConfirm(umi)

Removing a Plugin from a Collection

Removing a Plugin from a MPL Core Collection

import { publicKey } from '@metaplex-foundation/umi'
import {
  removeCollectionPluginV1,
  PluginType,
} from '@metaplex-foundation/mpl-core'

const collection = publicKey('11111111111111111111111111111111')

await removeCollectionPluginV1(umi, {
  collection: collection,
  pluginType: PluginType.Royalties,
}).sendAndConfirm(umi)
Previous
Adding Plugins