Use the delistItem helper method to either call the delistVirtual or delistNft method based on the itemId. The marketplace authority must be the seller in this case.
awaitcarbon.methods.delistItem({itemId,})
Delist or Buy
If you are delisting items from the Solana marketplace via an off-chain trigger (e.g. an off-chain item was just purchased and now you need to remove the Solana listing for the same item), use the delistOrBuyItem method to automatically delist or buy the item based on who the seller is.
⚠️ It's highly recommended to pass in the maxPrice parameter to make sure the on-chain listing hasn't been updated to a higher than expected price.