title: Clear Sitecore cache for an item from cache programmatically
body: <p>I want to clear Sitecore cache for an item programmatically. I ran the code below. After that I tried to do a web.GetItem on the deleted id and I still get a null. Any suggestions?</p>
  
  <pre><code>Database db = new Database("web");
  
          if (ID.IsID(id))
          {
              ID itemID = new ID(id);
              //clear data cache
              db.Caches.DataCache.RemoveItemInformation(itemID);
  
              //clear item cache
              db.Caches.ItemCache.RemoveItem(itemID);
  
              //clear standard values cache
              db.Caches.StandardValuesCache.RemoveKeysContaining(itemID.ToString());
  
              //remove path cache
              db.Caches.PathCache.RemoveKeysContaining(itemID.ToString());
          }
  </code></pre>