Remove Existing Cache
Note
NCache allows you to remove an existing cache. You can remove a cache without stopping any of the existing caches on this server.
An already registered cache can be removed using the following steps.
Using NCache Web Manager
Launch NCache Web Manager by browsing to
http://localhost:8251
(Windows) or<server-ip>:8251
(Windows + Linux).In the left navigation bar, click on Local Caches or Clustered Caches based on the cache to be removed. This opens up a new page at
<server-ip>:8251/
. The page shows any existing local or clustered caches and additional details like Server and Server Platform.In the Caches window, check the box against the cache name to remove, and click Remove.
- You will be prompted to confirm if you want to unregister the cache as well. Clicking Yes will unregister the cache, clicking No will only remove the cache from the Web Manager view.
Using PowerShell
Remove-Cache cmdlet removes an already registered cache and also remove cache(s) on a specified server.
Remove-Cache –Name demoCache
To remove the cache on a specified server, specify the server:
Remove-Cache –Name demoCache -Server 20.200.20.30
Verify Successful Cache Removal
In order to verify the successful removal of the cache, use PowerShell to run the Get-Caches command to get the list of the registered caches on the server. Successful removal of the cache will be verified if the cache list displayed does not contain the cache name.
Get-caches