title: How to update cordova (phonegap) plugin in my project?
body: <p>Anyone knows what is the proper way to update cordova plugin in my cordova/phonegap project? Some time ago I installed file plugin as:</p>
  
  <pre><code>cordova plugin add org.apache.cordova.file
  </code></pre>
  
  <p>Everything worked fine. Now I realized there is a new version of the file plugin, so I wanted to update to get the new functionality. However, I haven't found a decent way to update. Actually, I can't update at all.</p>
  
  <p>When I run remove command as:</p>
  
  <pre><code>cordova plugin rm org.apache.cordova.file
  </code></pre>
  
  <p>I get the following message:</p>
  
  <pre><code>Deleting plugin org.apache.cordova.file
  No dangling plugins to remove.
  </code></pre>
  
  <p>What is interesting is that if I run</p>
  
  <pre><code>cordova plugin
  </code></pre>
  
  <p>right after, I still see org.apache.cordova.file in the list of installed plugins. Also, there is no single change on a file system. Nothing is removed, no file is updated.</p>
  
  <p>Then I try to add a plugin again (as for updating the plugin is advised to remove it and add again) with:</p>
  
  <pre><code>cordova plugin add org.apache.cordova.file
  </code></pre>
  
  <p>Which outputs:</p>
  
  <pre><code>Fetching plugin "org.apache.cordova.file" via plugin registry
  Plugin "org.apache.cordova.file" already installed on android.
  Plugin "org.apache.cordova.file" already installed on ios.
  </code></pre>
  
  <p>And, even though this brings new version of java and javascript files (and some others), as I would expect, it brings them to myproject/plugins folder only. </p>
  
  <p>It doesn't update files in platform folders (myproject/platforms/android/assets/www/plugins and myproject/platforms/ios/www/plugins) where it installed the files I installed them the first time. </p>
  
  <p>Thus my project still keeps using the old version of the plugin.</p>
  
  <p>So I wonder, how to update plugins. Any idea? Do I have to copy them manually to platform folders? Is this documented anywhere?</p>
  
  <p>Thanks in advance.</p>