Remove-ServiceFabricCluster
Removes a standalone Service Fabric cluster.
Syntax
Remove-ServiceFabricCluster
[-ClusterConfigurationFilePath] <String>
[-DeleteLog]
[-Force]
[-TimeoutSec <Int32>]
[<CommonParameters>]
Description
The Remove-ServiceFabricCluster cmdlet removes a standalone Service Fabric cluster based on a cluster configuration file in JavaScript Object Notation (JSON) format.
The configuration includes target computers from which the cmdlet removes Fabric nodes.
Examples
Example 1: Remove a cluster
PS C:\> Remove-ServiceFabricCluster -ClusterConfigurationFilePath "D:\standalone\ClusterConfig.Unsecure.DevCluster.json"
Removes the Service Fabric cluster nodes based on computers specified in the cluster configuration file.
Parameters
-ClusterConfigurationFilePath
Specifies the path of the cluster configuration JSON file. The configuration describes target computers from which Fabric nodes are removed.
Type: | String |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DeleteLog
Indicates that the cmdlet removes log files as part of cluster removal.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Force
Forces the command to run without asking for user confirmation.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-TimeoutSec
Specifies the time-out period, in seconds, for the operation.
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
None
Outputs
System.Object