Deleting a Password ​
DELETE /userapi/passwords
Deleting a Password is possible by submitting a 'DELETE' HTTP Verb to the API. When a Password is deleted, you will be returned a Http Status Code of 204 - NoContent.
You can choose to either move the Password to the Recycle Bin, or perform a permanent delete by specifying the appropriate value for the MoveToRecycleBin parameter (True or False).
Powershell
# PowerShell Request
$PasswordstateUrl = 'https://passwordstate/userapi/passwords/<PasswordID>?MoveToRecycleBin=<value>'
Invoke-Restmethod -Method Delete -Uri $PasswordstateUrl -Header @{ "UserID" = "<UserID>" ; "APIKey" = "<APIKey>" }Json
# Response
HTTP/1.1 204 No Content