[comment]: # translation:outdated

[comment]: # ({c073dc7d-c073dc7d})
# 删除

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

[comment]: # ({1b074d0b-702ce926})
### 描述

`object regexp.delete(array regexpids)`

此方法允许删除全局正则表达式。

::: noteclassic
此方法仅适用于 *超级管理员* 用户类型。
可以在用户角色设置中撤销调用该方法的权限。有关更多信息，请参阅
[用户角色](/manual/web_interface/frontend_sections/users/user_roles)。
:::

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

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

`(array)` 代表计划删除的正则表达式的ID号。

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

[comment]: # ({b583665a-b583665a})
### 返回数值

根据`regexpids` 的特性`(object)`会反馈一个包含已删除正则表达式的ID对象。

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

[comment]: # ({b41637d2-b41637d2})
### 示例

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

[comment]: # ({6f2cf24a-13da0716})
#### 删除多个全局正则表达式。

[请求](/manual/api#执行请求):

```json
{
	"jsonrpc": "2.0",
	"method": "regexp.delete",
	"params": [
		"16",
		"17"
	],
	"id": 1
}
```

响应:

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

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

[comment]: # ({e0390136-e0390136})
### 参考来源

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

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