In my Ionic app, I just uninstalled a Cordova plugin this way :
$ cordova plugin remove phonegap-facebook-plugin
Uninstalling phonegap-facebook-plugin from android
but when I list the plugins it still appears as installed :
$ cordova plugins
cordova-plugin-googleplayservices 19.0.3 "Google Play Services for Android"
cordova-plugin-googleplus 4.0.3 "Google+"
cordova-plugin-whitelist 1.1.1-dev "Whitelist"
ionic-plugin-keyboard 1.0.7 "Keyboard"
phonegap-facebook-plugin 0.12.0 "Facebook Connect"
Can help me figure this out ?
Thanks
the problem is you have to use the --save flag when you run the cordova plugin rm command. cordova plugin remove phonegap-facebook-plugin --save
This --save flag tells the compiler to also remove it from config.xml , where all the plugins are listed. When you don't pass the --save flag, the plugin entry remains in the config.xml and thus when you run: "cordova plugins ls", your plugin is still there..
This should be highlighted more clearly in the official cordova docs..
Please delete
phonegap-facebook-plugin
from yourplugin
folder manually.You can remove any cordova plugin forcefully by using below command,
then try to remove all platforms using below command,
then try to add platforms again using below command,
Finally prepare project using below command,
You can directly delete the plugin from plugin folder or use the
cordova plugin remove plugin-name
You can find the list of plugin by this commandcordova plugin list
Sometime this make a great issue that the plugin part also remains in the platform folder. So you can remove the platform and add the platform again.
A). You can directly delete plugin from plugin directory.
B). On obuntu or mac
C). Cordova Command
This may help you..