[comment]: # ({991d071b-991d071b})
# history.clear

[comment]: # ({/991d071b-991d071b})

[comment]: # ({3bf9d0da-3bf9d0da})
### Description

`object history.clear(array itemids)`

This method allows to clear item history.

::: noteclassic
This method is only available to *Admin* and *Super admin*
user types. Permissions to call the method can be revoked in user role
settings. See [User
roles](/manual/web_interface/frontend_sections/administration/user_roles)
for more information.
:::

[comment]: # ({/3bf9d0da-3bf9d0da})

[comment]: # ({f449cc26-f449cc26})
### Paraméterek

"(tömb)" A törölni kívánt elemek azonosítói.

[comment]: # ({/f449cc26-f449cc26})

[comment]: # ({a59d9134-a59d9134})
### Visszatérési értékek

`(object)` Egy objektumot ad vissza, amely tartalmazza a törölt elemek azonosítóit
az `itemids` tulajdonság alatt.

[comment]: # ({/a59d9134-a59d9134})

[comment]: # ({b41637d2-b41637d2})
### Példák

[comment]: # ({/b41637d2-b41637d2})

[comment]: # ({1811d7cd-e482fed3})
#### Clear history

Request:

```json
{
    "jsonrpc": "2.0",
    "method": "history.clear",
    "params": [
        "10325",
        "13205"
    ],
    "auth": "038e1d7b1735c6a5436ee9eae095879e",
    "id": 1
}
```

Response:

```json
{
    "jsonrpc": "2.0",
    "result": {
        "itemids": [
            "10325",
            "13205"
        ]
    },
    "id": 1
}
```

[comment]: # ({/1811d7cd-e482fed3})

[comment]: # ({e7aa34e8-e7aa34e8})
### Forrás

CHistory::clear() az *ui/include/classes/api/services/CHistory.php*-ban.

[comment]: # ({/e7aa34e8-e7aa34e8})
