IMG-LOGO

How to uninstall a plugin from Ionic?

andy - 23 May, 2017 23363 Views 5 Comment

If you need to uninstall some plugins that you are no longer need. You can go to Ionic project folder. You will then find there is a folder named plugins.

To remove a plugin you just need to use the following code in your Node.Js command prompt.

cordova plugin remove FOLDER_PLUGIN_NAME

Comments

darwin
12 Jan, 2018
it did'nt work "cordova plugin remove cordova-plugin-facebook" is the plugin i what to remove but nothing happens help please.
andy
13 Jan, 2018
Hi Darwin, what you can do is to remove the folder manually and in the config file, you can remove the plugin name manually as well. It should remove the plugin for you.
Anes P A
12 Feb, 2018
Hi Andy, I tried your solution . Removed the line : and removed the folder : cordova-plugin-app-preferences from 'npm_folder' But still show: user@acer:~/dreamhouse-mobile-ionic$ ionic cordova plugin > cordova plugin ls cordova-plugin-app-preferences 0.99.3 "AppPreferences" cordova-plugin-console 1.0.5 "Console" cordova-plugin-device 2.0.1 "Device" First entry is that app name.. Please advise Thanks Anes
andy
13 Feb, 2018
Hi Anes, Tried this. Copy the whole of your ionic project first and zip it. Then try adding any new plugin and remove it using the above line. See if it does work? If it does, then re-install the cordova-plugin-app-preferences and once succesfull, try to uninstall it again.
Devendra Kamal
18 Apr, 2018
Hey ! i want to remove unused plugin from my ionic project. so how to find unused plugin list? Thanks in advance
andy
19 Apr, 2018
Hi Devendra, I don't think there is an option to list unused plugins. However you can uninstall any plugin you think that is not in used and if it breaks, just reinstall it back.
Write Comment
0 characters entered. Maximum characters allowed are 1000 characters.

Related Articles