DirectoryPrivacy
Directory Privacy
Delete authorized user for protected directory
This function deletes a user who can access a protected directory on the cPanel account.
get/DirectoryPrivacy/delete_user
Query parameters
dirstring path required
Example:/home/example/example.com
The absolute directory path on the cPanel account from which to remove a user.
userstring username required
Example:example1
The username to remove from the directory.
Response
HTTP Request was successful.
Example response
{
"apiversion": 3,
"func": "delete_user",
"module": "DirectoryPrivacy",
"result": {
"status": 1
}
}