Remove-ServiceFabricNode

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.

Parameters

-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