Say i have an NFT generated from CandyMachine. Candy Machine will automatically set a Collection to the NFTs. I want to remove a specific NFT from that collection. I don’t want it to be transferred to other NFT collection. I just want to remove its collection attribute
is this possible?
>Solution :
Yes it is absolutely possible to remove a NFT from a collection.
You can use the unverify instruction for it. This will set the verified to false and with this basically remove it from collection. It will not remove the key string from metadata, but that should not be an issue since a NFT is only part of a collection if verified is true. To remove any traces in the metadata you could also use the set and verify instruction to set a different collection value.
Easiest method to do this is using metaboss:
metaboss collections unverify [FLAGS] [OPTIONS] --collection-mint <collection-mint> --nft-mint <nft-mint>
If you want to replace the collection use
metaboss collections set-and-verify [FLAGS] [OPTIONS] --collection-mint <collection-mint> --nft-mint <nft-mint> --update-authority-nft <update-authority-nft>