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

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

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

`object usermacro.deleteglobal(array globalMacroIds)`

This method allows to delete global macros.

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

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

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

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

[comment]: # ({30415b7d-30415b7d})
### Return values

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

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

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

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

[comment]: # ({b377e629-b377e629})
#### 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
}
```

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

[comment]: # ({ae246d76-ae246d76})
### Source

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

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