Share via


Remove-ServiceFabricCluster

Removes a standalone Service Fabric cluster.

Syntax

Default (Default)

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.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:0
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-DeleteLog

Indicates that the cmdlet removes log files as part of cluster removal.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Force

Forces the command to run without asking for user confirmation.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-TimeoutSec

Specifies the time-out period, in seconds, for the operation.

Parameter properties

Type:Int32
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

None

Outputs

System.Object