Delete Active Directory Domains ​
DELETE /winapi/activedirectory
Deleting an Active Directory Domain entry is possible by submitting a 'DELETE' HTTP Verb to the API. When a entry is deleted, you will be returned a Http Status Code of 204 - NoContent. The account executing this call must have the 'Active Directory Domains' Security Administrator's role in Passwordstate.
Powershell
# PowerShell Request
$PasswordstateURL = 'https://passwordstate/winapi/activedirectory/?ADDomainID<value>'
Invoke-Restmethod -Method Delete -Uri $PasswordstateURL -UseDefaultCredentialsJson
# Response
HTTP/1.1 204 No Content