Delete Privileged Account Credential ​
DELETE /api/privaccount
Deleting a Privileged Account Credential entry is possible by submitting a 'DELETE' HTTP Verb to the API. When an entry is deleted, you will be returned an Http Status Code of 204 - NoContent. You must use the Privileged Account Credential API Key.
Powershell
# PowerShell Request
$PasswordstateURL = 'https://passwordstate/api/privaccount/?PrivilegedAccountID<value>'
Invoke-Restmethod -Method Delete -Uri $PasswordstateURL -Header @{ "APIKey" = "<apikey>" }Json
# Response
HTTP/1.1 204 No Content