Remove-Cache
Note
This feature is only available in NCache Enterprise and NCache Professional.
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.20.11.
Remove-Cache –Name demoCache –server 20.200.20.11
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 (Enterprise edition only) |
<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 (Enterprise edition only) |
<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 |