Unable to remove user from AD realm

Jul 4, 2022
77
10
13
Poland
I've added Active Directory realm and user to my proxmox VE for tests. Now I'm unable to remove it, I'm getting an error:
Code:
Method 'DELETE /access/users//mydomain/user@ad' not implemented (501)
Is there any way to remove it?
 
If you're using Active Directory (AD) with Proxmox VE and need to delete a user, you can do so via the API. According to the API documentation, the endpoint for deleting a user is:

Code:
DELETE /access/users/{userid}

If your AD realm is ad and you want to delete the user test, you should use the following API call:

Code:
DELETE http://ip:8006/api2/json/access/users/test@ad

[1] https://pve.proxmox.com/pve-docs/api-viewer/index.html#/access/users/{userid}