Open sinead-kelly opened 6 years ago
To remove a chaincode we have to remove the chaincode’s container on each of the hosts or virtual machines on which the endorsing peer nodes are running, and then delete the SignedCDS from each of the endorsing peer nodes:
docker rm -f <container id>
rm /var/hyperledger/production/chaincodes/<ccname>:<ccversion>
functionality for removing old chaincode seems to be in progress by the hyperledger developers
When a chaincode is upgraded with a new version, the old version is not automatically removed. We need a script to clean up old chaincodes