v1

latestOpenAPI 3.0.2cPanel License2026-08-06657427.1 MB
WebDisk
WebDisk Settings

Delete Web Disk account

This function deletes a Web Disk account.

Important:

When you disable the Web Disk role, the system disables this function.

get/WebDisk/delete_user

Query parameters

destroy0 | 1 required
Example:1

Whether to recursively delete the Web Disk account's folder and all of its contents.

  • 1 - Delete the folder for the Web Disk account
  • 0 - Do not delete the folder for the Web Disk account.
userstring email required
Example:example1@example.com

The Web Disk account username.

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": "WebDisk",
  "result": {
    "status": 1
  }
}