Remove-​Service​Fabric​Node

Removes a Service Fabric node from the cluster.

Syntax

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.

Optional Parameters

-Force

Forces the command to run without asking for user confirmation.

Type:SwitchParameter
Position:Named
Default value:None
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
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

You cannot pipe input to this cmdlet.