PowerShell module for FleetDM API integration
Removes hosts from FleetDM
Remove-FleetHost [-Id] <Int32[]> [-Force] [-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm]
[<CommonParameters>]
Removes one or more hosts from FleetDM. Supports pipeline input for bulk operations. Use with caution as this operation cannot be undone.
Remove-FleetHost -Id 123
Removes host with ID 123 after confirmation
Remove-FleetHost -Id 123 -Force
Removes host with ID 123 without confirmation
Get-FleetHost -Status offline | Remove-FleetHost -Force
Removes all offline hosts without confirmation
@(123, 456, 789) | Remove-FleetHost -WhatIf
Shows what would happen if you removed hosts 123, 456, and 789
Get-FleetHost -Hostname "old-*" | Remove-FleetHost
Removes all hosts with hostnames starting with “old-“ after confirmation for each
The ID(s) of the host(s) to remove. Accepts pipeline input.
Type: Int32[]
Parameter Sets: (All)
Aliases: HostId
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
Skip confirmation prompts
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Prompts you for confirmation before running the cmdlet.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.