Remove-​Service​Fabric​Node​Configuration

Removes information related to a configured node.

Syntax

Remove-ServiceFabricNodeConfiguration
      [-DeleteLog]
      [-Force]
      [-MachineName <String>]
      [-Confirm]
      [-WhatIf]
      [<CommonParameters>]

Description

The Remove-ServiceFabricNodeConfiguration cmdlet removes all the data and configuration settings stored on the operating system instance related to the node. This cmdlet does not change the Service Fabric state. To completely remove all information about the node, including the state, you must also use the Remove-ServiceFabricNodeState cmdlet. This removes the state from the system services.

To manage Service Fabric clusters, start your Windows PowerShell session by using the Run as administrator option.

Examples

Example 1: Remove a service node configuration

PS C:\> Remove-ServiceFabricNodeConfiguration -MachineName "192.168.1.1" -DeleteLog

This command removes the service node configuration from the computer with the IP address 192.168.1.1. The DeleteLog parameter is included in order to remove the per-node log as well.

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-DeleteLog

Indicates that the cmdlet removes the per-node log.

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

Specifies the computer that the configuration is removed from. You can use either the computer name or the computer IP address. For example:-MachineName "192.168.1.1"

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

This cmdlet does not accept pipelined input.

Outputs

This cmdlet returns the status of the operation as a string.