Table of Contents

Remove-Cache

Note

This feature is only available in NCache Enterprise and Professional editions.

Remove-Cache cmdlet enables the user to remove an already registered cache and also remove cache(s) on a specified server.

Remove-Cache [-Name] [-NoLogo] [-Password] [-Port] [-Server] [-UserId]

These properties are explained in detail in the Properties section.

Examples

  • This command removes the cache named demoCache from the local server using default port 8250.
Remove-Cache –Name demoCache
  • This command removes the cache named demoCache on the server node 20.200.21.11.
Remove-Cache –Name demoCache –server 20.200.21.11
  • This command removes the cache named demoCache on the port number 8251 from server node 20.200.21.11.
Remove-Cache demoCache –Server 20.200.21.11 –Port 8251

Properties

Note: The parameters with asterisk (*) on their names are the required parameters and the rest are optional.

Parameters Data Types Description Default Value
-Name* <String> Specifies the name of the already registered Cache which needs to be removed. -
-Server <String> Specifies the server name where NCache service is running and a cache with the specified cache name is registered. Local Machine
-Port <Integer> Specifies the server port if the server channel is not using the default port. 8250
-UserId <String> Specifies the User Id used to authorize a user if security is enabled on cache server. This User Id must be the same as the active directory user credentials. -
-Password <String> Specifies the password against the user Id; to authorize a user if security is enabled on cache server. This password must be the same as active directory password. -
-NoLogo <SwitchParameter> Suppresses display of the logo banner. False