Remove-ServiceFabricNodeConfiguration

Removes information related to a configured node.

Syntax

Remove-ServiceFabricNodeConfiguration
      [-DeleteLog]
      [-Force]
      [-MachineName <String>]
      [-WhatIf]
      [-Confirm]
      [<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.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

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

Inputs

None

Outputs

System.Object