[comment]: # ({fc20d2a9-fc20d2a9})
# ממשק מארח.מחק

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

[comment]: # ({6a90d1d2-6a90d1d2})
### תיאור

`object hostinterface.delete(array hostInterfaceIds)`

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

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

[comment]: # ({/6a90d1d2-6a90d1d2})

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

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

[comment]: # ({/617ba57c-617ba57c})

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

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

[comment]: # ({/61a8b976-61a8b976})

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

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

[comment]: # ({9639e082-91934c15})
#### מחק ממשק מארח

מחק את ממשק המארח עם מזהה 30062.

בַּקָשָׁה:

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

תְגוּבָה:

``` json
{
     "jsonrpc": "2.0",
     "תוצאה": {
         "interfaceids": [
             "30062"
         ]
     },
     "מזהה": 1
}
```

[comment]: # ({/9639e082-91934c15})

[comment]: # ({a3d1e725-a3d1e725})
### מידע נוסף

-   [hostinterface.massremove](massremove)
-   [host.massremove](/manual/api/reference/host/massremove)

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

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

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

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