Remove-NCAzClientCache
The Remove-NCAzClientCache PowerShell cmdlet removes an already existing client cache from a client node and deletes the client cache information from the specified environment.
Remove-NCAzClientCache -EnvName -CacheName -ClientCacheName [-Port] [-Server] [-Credentials]
Example
- Remove a client cache named demoClientCache from client node 10.0.0.10:
Remove-NCAzClientCache -EnvName Production -CacheName demoCache -ClientCacheName demoClientCache -ClientNode 10.0.0.10
- Remove a client cache named demoClientCache from client node 10.0.0.10 for a clustered cache on server 20.200.20.12:
Remove-NCAzClientCache -EnvName Production -CacheName demoCache -ClientCacheName demoClientCache -ClientNode 10.0.0.10 -Server 20.200.20.12
Properties
Note
Parameters marked with an asterisk (*) are required. All others are optional.
| Parameter | Data Type | Description | Default Value |
|---|---|---|---|
-EnvName* |
<String> |
Specifies the name of the environment from which the client cache will be removed. | - |
-CacheName* |
<String> |
Specifies the name of the clustered cache with which the client cache is associated. | - |
-ClientCacheName* |
<String> |
Specifies the name or ID of the client cache to be removed. | - |
-ClientNode |
<String> |
Specifies the client node where the client cache exists that needs to be removed. | - |
-Port |
<Integer> |
Specifies the server port where the NCache Service is listening. | 8250 |
-Server |
<String> |
Specifies the clustered cache node with which the client cache is associated. If not specified, defaults to the local machine. | Local Machine |
-Credentials |
<PSCredential> |
Specifies the user credentials required to authorize the operation. The user must have the appropriate permissions at the node. | - |