[comment]: # ({e91a170d-e91a170d})
# usermacro.deleteglobal

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

[comment]: # ({f30bc5c6-a4b4bf19})
### 说明

`object usermacro.deleteglobal(array globalMacroIds)`
此方法允许删除全局宏。

[comment]: # ({/f30bc5c6-a4b4bf19})

[comment]: # ({a4b4bf19-0a9d3dbc})
### Description

`object usermacro.deleteglobal(array globalMacroIds)`

This method allows to delete global macros.

[comment]: # ({/a4b4bf19-0a9d3dbc})

[comment]: # ({fea80a88-30415b7d})
### 参数

`(array)` 要删除的全局宏的ID。

[comment]: # ({/fea80a88-30415b7d})

[comment]: # ({0a9d3dbc-b41637d2})
### Parameters

`(array)` IDs of the global macros to delete.

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

[comment]: # ({a2906feb-b377e629})
### 返回值

`(object)` 返回包含“globalmacroids”属性下删除的全局宏ID的对象。

[comment]: # ({/a2906feb-b377e629})

[comment]: # ({bbe31bd2-ae246d76})
### Return values

`(object)` Returns an object containing the IDs of the deleted global
macros under the `globalmacroids` property.

### 示例

### Examples

#### 删除多个全局宏

删除2个主机宏。

#### Deleting multiple global macros

Delete two global macros.

Request:

``` {.java}
{
    "jsonrpc": "2.0",
    "method": "usermacro.deleteglobal",
    "params": [
        "32",
        "11"
    ],
    "auth": "3a57200802b24cda67c4e4010b50c065",
    "id": 1
}
```

Response:

``` {.java}
{
    "jsonrpc": "2.0",
    "result": {
        "globalmacroids": [
            "32",
            "11"
        ]
    },
    "id": 1
}
```

### 来源

CUserMacro::deleteGlobal() in
*frontends/php/include/classes/api/services/CUserMacro.php*.

[comment]: # ({/bbe31bd2-ae246d76})
