title: How to clear or clean specific pod from the local cocoapods cache
body: <h1>How to delete or clear a specific pod from cocoapods cache?</h1>
  <p>Tried deleting the entire cache directly, it takes lot of time to get back all pods. How to view and remove specific pod from cache?</p>
  <p>Following works (longer time commit):</p>
  <pre><code># delete all cached pods
  `rm -rf &quot;${HOME}/Library/Caches/CocoaPods&quot;`  
  
  # delete local Pods/*
  rm -rf &quot;`pwd`/Pods/&quot;
  
  # pod update to fetch latest. After entire cache deletion, it takes lot longer to fetch and rebuild pod cache from scratch. 
  `pod update` 
  </code></pre>
  <p>Just commenting out from podfile, and <code>pod install</code> again fetches old version from cache.</p>
  <p>Having many instances of same pod in the pod cache can be troublesome when the pod is large, one of the pod currently in use has size of &gt;1.5 GB in a project that is using <code>cocoapods1.3.1</code> with <code>Xcode9</code>.</p>