All Products
Search
Document Center

AI Guardrails:DeleteImageFromLib

Last Updated:Mar 31, 2026

Deletes one or more images from a specified image library.

Operation description

Note: Deleted images cannot be restored. Proceed with caution.

This operation supports batch deletion. To construct an HTTP request manually, see Request structure. To use an SDK instead, see SDK overview.

Billing: Free of charge.

QPS limits

The maximum call rate is 10 queries per second (QPS) per account. Calls that exceed this limit are throttled.

Request parameters

All AI Guardrails API requests require common request parameters. For details, see Common parameters.

The following table describes the parameters in the request body.

ParameterTypeRequiredExampleDescription
IdsListYes[1,2]The IDs of the images to delete.
ImageLibIdStringYes2147The primary key ID of the image library.

Response parameters

This operation returns only common response parameters. For details, see Common response parameters.

Examples

Sample request

http(s)://green.cn-shanghai.aliyuncs.com/?
Action=DeleteImageFromLib&ServiceModule=open_api
&<Common request parameters>
{
"Ids":[1,2],
"ImageLibId":"2147"
}

Sample success response

{
  "requestId": "795D8871-4889-4C0F-A8B1-C7D2B990FF61",
  "code": 200
}