Public/Remove-PegasusAdminPerson.ps1
<# .SYNOPSIS Removes a person from the API. .EXAMPLE Remove-PegasusAdminPerson -Id "6260c219-a10d-4079-b079-b2ee3655068a" #> function Remove-PegasusAdminPerson { [CmdletBinding()] Param ( [Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true)] [string]$Id ) Process { Invoke-PegasusRequest -Endpoint "/admin/persons/$Id" -Method DELETE | Out-Null } } |