[comment]: # ({991d071b-991d071b})
#היסטוריה.נקה

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

[comment]: # ({89596e6d-3bf9d0da})
### תיאור

`object history.clear(array itemids)`

שיטה זו מאפשרת לנקות את היסטוריית הפריטים.

::: noteclassic
שיטה זו זמינה רק ל-*Admin* ו-*Super Admin*
סוגי משתמשים. ניתן לבטל הרשאות לקרוא לשיטה בתפקיד משתמש
הגדרות. ראה [משתמש
תפקידים](/manual/web_interface/frontend_sections/administration/user_roles)
למידע נוסף.
:::

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

[comment]: # ({f449cc26-f449cc26})
### פרמטרים

מזהי `(מערך)` של פריטים לניקוי.

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

[comment]: # ({a59d9134-a59d9134})
### החזר ערכים

`(אובייקט)` מחזירה אובייקט המכיל את המזהים של הפריטים שנוקו
תחת הנכס `itemids`.

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

[comment]: # ({b41637d2-b41637d2})
### דוגמאות

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

[comment]: # ({9b6f5968-e482fed3})
#### נקה היסטוריה

בַּקָשָׁה:

``` json
{
     "jsonrpc": "2.0",
     "method": "history.clear",
     "פארמים": [
         "10325",
         "13205"
     ],
     "auth": "038e1d7b1735c6a5436ee9eae095879e",
     "מזהה": 1
}
```

תְגוּבָה:

``` json
{
     "jsonrpc": "2.0",
     "תוצאה": {
         "itemids": [
             "10325",
             "13205"
         ]
     },
     "מזהה": 1
}
```

[comment]: # ({/9b6f5968-e482fed3})

[comment]: # ({e7aa34e8-e7aa34e8})
### מקור

CHistory::clear()‎ בתוך *ui/include/classes/api/services/CHistory.php*.

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