Files
ZertoApiWrapper/ZertoApiWrapper/Public/Remove-ZertoVpgSettingsIdentifier.ps1
T
Wes Carroll 0a2e6974f0 Create Function and related files
Remove-ZertoVpgSettingsIdentifier
2019-07-08 11:59:50 -04:00

27 lines
668 B
PowerShell

<# .ExternalHelp ./en-us/ZertoApiWrapper-help.xml #>
function Remove-ZertoVpgSettingsIdentifier {
[CmdletBinding(SupportsShouldProcess = $true)]
param (
# Settings Identifier to Remove
[Parameter(HelpMessage = "VpgSettingsIdentifier to Delete", Mandatory)]
[ValidateNotNullOrEmpty()]
[string[]]
$vpgSettingsIdentifier
)
begin {
}
process {
foreach ($id in $vpgSettingsIdentifier) {
if ($PSCmdlet.ShouldProcess($id)) {
$uri = "vpgSettings/{0}" -f $id
Invoke-ZertoRestRequest -uri $uri -method "DELETE"
}
}
}
end {
}
}