[comment]: # translation:outdated

[comment]: # ({c073dc7d-c073dc7d})
# regexp.delete

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

[comment]: # ({new-702ce926})
### Description

`object regexp.delete(array regexpids)`

This method allows to delete global regular expressions.

::: noteclassic
This method is only available to *Super admin* user types.
Permissions to call the method can be revoked in user role settings. See
[User
roles](/manual/web_interface/frontend_sections/administration/user_roles)
for more information.
:::

[comment]: # ({/new-702ce926})

[comment]: # ({99c30c43-99c30c43})
### Parametri

`(array)` ID delle espressioni regolari da eliminare.

[comment]: # ({/99c30c43-99c30c43})

[comment]: # ({b583665a-b583665a})
### Valori di ritorno

`(oggetto)` Restituisce un oggetto contenente gli ID delle espressioni regolari cancellate sotto la proprietà `regexpids`.

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

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

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

[comment]: # ({new-13da0716})
#### Deleting multiple global regular expressions.

Request:

``` {.java}
{
    "jsonrpc": "2.0",
    "method": "regexp.delete",
    "params": [
        "16",
        "17"
    ],
    "auth": "3a57200802b24cda67c4e4010b50c065",
    "id": 1
}
```

Response:

``` {.java}
{
    "jsonrpc": "2.0",
    "result": {
        "regexpids": [
            "16",
            "17"
        ]
    },
    "id": 1
}
```

[comment]: # ({/new-13da0716})

[comment]: # ({e0390136-e0390136})
### Fonte

CRegexp::delete() in *ui/include/classes/api/services/CRegexp.php*.

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