How can I remove Cordova and ionic installation from my Mac completely? I am running mac os Yosemite 10.10.2
12 Answers
BlueBell's answer is right, you can do it by:
npm uninstall cordova ionic
Are you planning to re-install it? If you feel something's wrong which is causing problems then you should update npm and clean npm's cache.
npm cache clean -f
npm install npm -g
If problems still persist, I'd suggest re-install of NPM and Node.
npm uninstall node
apt-get purge npm
apt-get install npm
npm install node -g
Let me know if you face issues in the process.

- 3,389
- 2
- 24
- 41
-
1apt-get is not available for OS X. How can purge npm. I can install npm using Homebrew. – Syed Tariq Feb 17 '16 at 15:11
-
1Even after I run 'nom uninstall cordova ionic', it's still there. I can type ionic -v and get a version or type ionic serve and it still executes. I need to uninstall it completely. – Chuck Krutsinger May 31 '19 at 23:17
To uninstall Ionic and Cordova:
sudo npm uninstall -g cordova
sudo npm uninstall -g ionic
To install:
sudo npm install -g cordova

- 371
- 2
- 13

- 1,122
- 8
- 14
-
1Other answers did not have the required -g on the command line. Your version worked fine for me. Thanks! – Saeed D. May 05 '16 at 18:59
-
@SaeedD That is because you have installed Cordova using -g which means globally. Otherwise -g wouldn't have needed. – Murshid Ahmed Aug 08 '16 at 07:03
-
1
Command to remove Cordova and ionic
For Window system
- npm uninstall -g ionic
- npm uninstall -g cordova
For Mac system
- sudo npm uninstall -g ionic
- sudo npm uninstall -g cordova
For install cordova and ionic
- npm install -g cordova
- npm install -g ionic
Note:
- If you want to install in MAC System use before npm use sudo only.
- And plan to install specific version of ionic and cordova then use @(version no.).
eg.
sudo npm install -g cordova@6.0.0
sudo npm install -g ionic@2.1.18

- 61
- 1
- 3
If you want to delete ionic and cordova at same time.Run this code in cmd
npm uninstall -g ionic cordova

- 1,197
- 1
- 12
- 25
Here the command to remove cordova and ionic from your machine
npm uninstall cordova ionic

- 4,727
- 7
- 42
- 67
-
1This looks like a comment on the question not an attempt at an answer; please post it as such or rewrite how you are answering. – rfornal Apr 03 '15 at 12:14
These commands worked for me:
npm uninstall -g cordova
npm uninstall -g ionic

- 371
- 2
- 13

- 4,589
- 33
- 27
command to remove cordova and ionic
sudo npm uninstall -g ionic

- 85,780
- 21
- 159
- 179

- 581
- 6
- 10
You can use following command if you uninstall globally
npm uninstall -g cordova ionic
option g for global
if you want to uninstall from he drive then you can use following command
npm uninstall cordova ionic

- 703
- 8
- 13
1) first remove cordova cmd
npm uninstall -g cordova
2) After that remove ionic
npm uninstall -g ionic

- 481
- 5
- 5
I found that I had to use:
npm uninstall @ionic/cli
to stop ionic from still being active.

- 29
- 1
-
That worked for me (with -g switch) to remove globally on MacOS big sur. npm uninstall -g @ionic/cli – Sinan Ceylan Mar 23 '21 at 02:25