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 { removePlugin } from '@metaplex-foundation/mpl-core'

const asset = publicKey('11111111111111111111111111111111')

await removePlugin(umi, {
  asset: asset.publicKey,
  plugin: { type: 'Attributes' },
}).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 collectionAddress = publicKey('11111111111111111111111111111111')

await removeCollectionPlugin(umi, {
  collection: collectionAddress,
  pluginType: { type: 'Royalties' },
}).sendAndConfirm(umi)
Previous
Adding Plugins