src/cordova/util.js
function removePlatformPluginsJson (projectRoot, target) {
    var plugins_json = path.join(projectRoot, 'plugins', target + '.json');
    fs.removeSync(plugins_json);
}
function removePlatformPluginsJson (projectRoot, target) {
    var plugins_json = path.join(projectRoot, 'plugins', target + '.json');
    fs.removeSync(plugins_json);
}
function removePlatformPluginsJson ( projectRoot , target ) { var plugins_json = path . join ( projectRoot , 'plugins' , target + '.json' ) ; fs . removeSync ( plugins_json ) ; }
Remove <platform>.json file from plugins directory.
Remove <platform > . json file from plugins directory .