< Back

Remove-MonTarget

Sat Jan 18, 2020 4:23 pm

NAME Remove-MonTarget



SYNOPSIS

Deletes a target.





SYNTAX

Remove-MonTarget [-Name] <String[]> [-KeepData] [<CommonParameters>]





DESCRIPTION

Deletes a target.

This will purge all configuration data from memory and file.

Optionally, the data gathered from checks can be retained.





PARAMETERS

-Name <String[]>

Name of the target to purge.



Required? true

Position? 1

Default value

Accept pipeline input? true (ByValue, ByPropertyName)

Accept wildcard characters? false



-KeepData [<SwitchParameter>]

By default, all data pertaining a given target will be purged as well.

Using this switch disables that behavior.



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Remove-MonTarget -Name 'server.contoso.com'



Removes the target named server.contoso.com











RELATED LINKS