v1

latestOpenAPI 3.0.2cPanel License2026-08-06657427.1 MB
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.

apiversioninteger

The version of the API.

funcstring

The name of the method called.

modulestring

The name of the module called.

Example response

{
  "apiversion": 3,
  "func": "delete_user",
  "module": "DirectoryPrivacy",
  "result": {
    "status": 1
  }
}