The royalty wallets of your NFTs are stored on-chain, so you have to update each NFT that is part of the collection individually, because each NFT has its own on-chain creator array. You can use metaboss to make this simple.
So the steps to follow, assuming that your NFTs has the mutable flag on, are:
- You need to run
metaboss decode mint
in order to get all ur NFTs onchain metadata on a output directory (one file per NFT).
- You have to create a basic script that iterate over each file inside that directory in order to change the creator array to the new creator array that you wanna have (make sure to not change the first creator if you used a Candy machine to create the NFT). You can change any other onchain attribute here too, like the royalty %, name, uri, etc.
- You have to run
metaboss update data-all
providing the updated files and thats it.
Be really carefull and make sure that you understand what it is stored onchain and remember that making something wrong while updating can create some disaster on the NFTs.