This topic describes how to call the DeleteKeyword operation to delete terms from a specified custom text library. You can use text libraries for text anti-spam. The effect of managing custom text libraries by calling API operations is the same as that of managing custom text libraries in the Alibaba Cloud Content Moderation console.
Description
Operation: DeleteKeyword
Request parameters
For more information about the common request parameters that must be included in all Content Moderation API requests, see Common request parameters.
Parameter | Type | Required | Description |
---|---|---|---|
Ids | List | No | The IDs of the terms to delete.
Note You must specify either the Ids or Keywords parameter.
|
Keywords | List | No | The terms to delete.
Note You must specify either the Ids or Keywords parameter.
|
KeywordLibId | String | Yes | The primary key ID of the text library. |
Response parameters
For more information about common response parameters that this operation returns, see Common response parameters.
Examples
{
"Id": [1,2]
"KeywordLibId": 2147
}
{
"requestId": "795D8871-4889-4C0F-A8B1-C7D2B990FF61",
"code": 200
}