Delete images

Updated at:

This topic describes how to delete images. This operation deletes stored image features but does not release instance resources.

Note

For more product details or technical support, click Online Consulting or contact us through our DingTalk group: 35035130.

Background information

Image Search provides four methods to delete images: calling the API, using an SDK (for small-scale, real-time deletion), performing batch operations (for large-scale, offline deletion), and using the Clear Images feature in the console (to delete all images from an instance at once).

Console

  1. Log in to the Image Search console.

  2. Select the target service type and instance.

    In the navigation pane on the left, under Search by image, click the target service type. In the instance list on the right, find the target instance in the Instance ID column.

  3. In the upper-right corner of the page, click Clear Images.

  4. In the verification dialog box, click Get Verification Code and enter the verification code.

  5. Click OK.

    Note

    After you confirm, the instance status changes to Resetting. While the instance resets, you cannot perform other operations on it. When the process is complete, the status changes to Running, and you can resume using Image Search.

API

Call the API by sending HTTP or HTTPS requests. You must authenticate these requests with a signature and format the request body as specified. The default queries per second (QPS) for API deletions is 20. If Delete API requests exceed the QPS limit of 20 requests per second, the system directly returns an error code instead of queuing the excess requests. For more information, see Delete image.

SDKs

Image Search provides SDKs to simplify signature authentication and request formatting. Use this method for real-time deletion of a small number of images. The default QPS for SDK deletions is 20. If Delete API requests exceed the QPS limit of 20 requests per second, the system directly returns an error code instead of queuing the excess requests. For more information, see the Delete operation.

Batch operations

Use batch operations in the Image Search console to delete indexed images from an instance in bulk. This method is ideal for large-scale (millions of images) offline deletion tasks. For more information, see Batch operations.