Share via


Remove-ServiceFabricNodeConfiguration

Removes information related to a configured node.

Syntax

Default (Default)

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.

Parameter properties

Type:SwitchParameter
Default value:False
Supports wildcards:False
DontShow:False
Aliases:cf

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-DeleteLog

Indicates that the cmdlet removes the per-node log.

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

-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

-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"

Parameter properties

Type:String
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

-WhatIf

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

Parameter properties

Type:SwitchParameter
Default value:False
Supports wildcards:False
DontShow:False
Aliases:wi

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