Share via


Remove-ServiceFabricNode

Removes a Service Fabric node from the cluster.

Syntax

Default (Default)

Remove-ServiceFabricNode
    [-Force]
    [-TimeoutSec <Int32>]
    [<CommonParameters>]

Description

The Remove-ServiceFabricNode cmdlet removes a Service Fabric node from a cluster. You must run this cmdlet from the machine that you want to remove. Before you perform this operation, establish a connection to the cluster by using the Connect-ServiceFabricCluster cmdlet.

Examples

Example 1: Remove a node

PS C:\> Remove-ServiceFabricNode

This command removes the current machine from a cluster.

Parameters

-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