How to completely uninstall hyperledger composer

0 votes

I am trying to uninstall hyperledger composer and I am running the following command:
 

npm uninstall -g composer-cli

npm uninstall -g composer-rest-server

npm uninstall -g generator-hyperledger-composer

npm uninstall -g yo

npm uninstall -g composer-playground

But I still see that it is not completely uninstalled. How to completely uninstall it?

Aug 9, 2018 in Blockchain by digger
• 26,740 points
5,064 views

2 answers to this question.

+1 vote
Best answer

You might have to uninstall/remove files from docker too. Try doing this:

To remove all docker containers and images:

docker kill $(docker ps -q)
docker rm $(docker ps -aq)
docker rmi $(docker images -q)

This will remove the docker files. But composer will other files too, you have to delete it. I have mentioned commands to delete different files/folders:

Composer cards folder 

$ rm -rf ~/.composer

Scripts and tools to create Fabric: 

$ rm -rf ~/.fabric-tools

Docker-compose: 

$ sudo rm /usr/local/bin/docker-compose

Remove docker: 

$ sudo apt-get remove docker-ce


Hope this helps!

Get your Blockchain certification today to learn more about this technology.

Thanks.

answered Aug 9, 2018 by slayer
• 29,370 points

selected Apr 24, 2019 by Omkar
Sir, I am getting permission denied error for this error

Hey @Rishi. Try using "sudo" before your command

It worked! Very silly of me not to think of using a root user. Thanks
0 votes

After running the commands mentioned in the question, run the following command to business network card store:

$ rm -rf ~/.composer

This will delete all the keys and certificates of the hyperledger.

answered Apr 24, 2019 by Jishan

Related Questions In Blockchain

0 votes
1 answer

How to solve EACCES:permission denied error in Hyperledger Composer?

It seems like there is no required ...READ MORE

answered Jul 11, 2018 in Blockchain by digger
• 26,740 points
2,433 views
0 votes
1 answer
0 votes
1 answer

Hyperledger Sawtooth vs Quorum in concurrency and speed Ask

Summary: Both should provide similar reliability of ...READ MORE

answered Sep 26, 2018 in IoT (Internet of Things) by Upasana
• 8,620 points
1,451 views
+1 vote
1 answer
0 votes
1 answer

Invalid Batch or signature in Savtooth

This will solve your problem import org.apache.commons.codec.binary.Hex; Transaction txn ...READ MORE

answered Aug 1, 2018 in Blockchain by digger
• 26,740 points
1,003 views
0 votes
1 answer

How to solve "error trying install composer runtime" in Hyperledger composer?

I think the docker-compose tool is not ...READ MORE

answered Jul 17, 2018 in Blockchain by slayer
• 29,370 points
896 views
+1 vote
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP