Delete Active Directory Domains ​
DELETE /api/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. You must use the Active Directory Domain API Key.
Powershell
# PowerShell Request
$PasswordstateURL = $PasswordstateBaseURL + '/api/activedirectory/?ADDomainID<value>'
Invoke-Restmethod -Method Delete -Uri $PasswordstateURL -Header @{ "APIKey" = "$APIKey" }Json
# Response
HTTP/1.1 204 No Content