Description

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

Examples 


https://hostname.example.com:2087/cpsess##########/json-api/restore_queue_clear_completed_tasks?api.version=1&user=user&start_time=1396065600
https://hostname.example.com:2087/cpsess##########/xml-api/restore_queue_clear_completed_tasks?api.version=1&user=user&start_time=1396065600
whmapi1 restore_queue_clear_completed_tasks user=user start_time=1396065600

{
  "metadata": {
    "version": 1,
    "reason": "OK",
    "result": "1",
    "command": "restore_queue_clear_completed_tasks"
  }
}
<result>
    <metadata>
        <version>1</version>
        <reason>OK</reason>
        <result>1</result>
        <command>restore_queue_clear_completed_tasks</command>
    </metadata>
</result>

   

Parameters

ParameterTypeDescriptionPossible valuesExample
userstring

Required

The account's username.

A valid cPanel account's username.user
start_timeinteger

Required

When the restoration queue started the restoration.

A time in Unix time format.

1396065600

 

Returns

This function only returns metadata.