removePlugin (plugin, uninstallOptions) {
        const project = AndroidProject.getProjectFile(this.root);

        if (uninstallOptions && uninstallOptions.usePlatformWww === true) {
            uninstallOptions.usePlatformWww = false;
        }

        return PluginManager.get(this.platform, this.locations, project)
            .removePlugin(plugin, uninstallOptions)
            .then(function () {
                if (plugin.getFrameworks(this.platform).length === 0) return;

                selfEvents.emit('verbose', 'Updating build files since android plugin contained <framework>');
                this._builder.prepBuildFiles();
            }.bind(this))
            // CB-11022 Return truthy value to prevent running prepare after
            .then(() => true);
    }
Removes an installed plugin from platform.

Since method accepts PluginInfo instance as input parameter instead of plugin
  id, caller shoud take care of managing/storing PluginInfo instances for
  future uninstalls.

@param  {PluginInfo}  plugin  A PluginInfo instance that represents plugin
  that will be installed.

@return  {Promise}  Return a promise either fulfilled, or rejected with
  CordovaError instance.