Remove the cache object in Asp.Net

Data in the ASP.NET cache is volatile — that is, it is not permanently stored. It might be automatically removed from the cache for one of these reasons:
  1. Because the cache is full.
  2. Because the item has expired.
  3. Because an item it is dependent on changes.
In addition to allowing items to be removed from the cache automatically , you can explicitly remove them. Cache object's Remove method can be used to remove data from the cache.
Cache.Remove Method (String)
private void RemoveButton_Click(object sender, System.EventArgs e) { Cache.Remove("CachedItem"); }

If the value in the key parameter is not found, returns null.