[comment]: # ({3d0c523c-3d0c523c})
# action.delete

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

[comment]: # ({943a414e-c056f978})
### תיאור

`object action.delete(array actionIds)`

שיטה זו מאפשרת למחוק פעולות.

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

[comment]: # ({/943a414e-c056f978})

[comment]: # ({f66aff82-f66aff82})
### משתנים

`(מערך)` מזהי המשימות למחיקה.

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

[comment]: # ({04c6deae-04c6deae})
### ערכים מוחזרים

`(עצם)` מחזירה עצם שמכיל את מזהי המשימות שנמחקו
תחת המאפיין `actionids`.

[comment]: # ({/04c6deae-04c6deae})

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

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

[comment]: # ({6a387578-36abb590})
#### מחק מספר פעולות

מחק שתי פעולות.

בַּקָשָׁה:

``` json
{
     "jsonrpc": "2.0",
     "method": "action.delete",
     "פארמים": [
         "17",
         "18"
     ],
     "auth": "3a57200802b24cda67c4e4010b50c065",
     "מזהה": 1
}
```

תְגוּבָה:

``` json
{
     "jsonrpc": "2.0",
     "תוצאה": {
         "actionids": [
             "17",
             "18"
         ]
     },
     "מזהה": 1
}
```

[comment]: # ({/6a387578-36abb590})

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

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

[comment]: # ({/70602a31-70602a31})
