Remove-LMServiceTemplate
Syntax
Remove-LMServiceTemplate [-Id] <String> [[-DeleteHard] <Boolean>] [-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]
Description
The Remove-LMServiceTemplate function removes a LogicMonitor Service template by ID.
Examples
Example 1
Remove-LMServiceTemplate -Id 6This example removes the LogicMonitor Service template with ID 6 using soft delete.
Example 2
Remove-LMServiceTemplate -Id 6 -DeleteHard $trueThis example removes the LogicMonitor Service template with ID 6 using hard delete.
Parameters
-Id
The ID of the Service template to remove. This parameter is mandatory.
Type: StringParameter Sets: (All)Aliases:
Required: TruePosition: 1Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-DeleteHard
Specifies whether to perform a hard delete. Default is $false (soft delete).
Type: BooleanParameter Sets: (All)Aliases:
Required: FalsePosition: 2Default value: FalseAccept pipeline input: FalseAccept wildcard characters: False
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: SwitchParameterParameter Sets: (All)Aliases: wi
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-Confirm
Prompts you for confirmation before running the cmdlet.
Type: SwitchParameterParameter Sets: (All)Aliases: cf
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-ProgressAction
Fill ProgressAction Description
Type: ActionPreferenceParameter Sets: (All)Aliases: proga
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.