Remove pending restoration task

This function removes a single pending task from the restoration queue.

SecurityBasicAuth
Request
query Parameters
user
required
string

The cPanel account's username.

Example: user=username
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
get/restore_queue_clear_pending_task
Request samples
whmapi1 --output=jsonpretty \
  restore_queue_clear_pending_task \
  user='username'
Response samples
application/json
{
  • "metadata": {
    • "command": "restore_queue_clear_pending_task",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}