Table of Contents

Delete target images

EasyAR provides two ways to handle recognition images that are no longer needed: permanent deletion and temporary deactivation. To ensure stability in production environments, it is recommended that you read the following instructions carefully.

Operate in EasyAR Web management center

  • Operation steps: Log in to EasyAR Developer Center -> Cloud Recognition Management -> select the corresponding gallery -> click Manage to enter the gallery management page.
  • Deletion methods:
    • Batch deletion: Select target images in the list, click Delete, and confirm.
    • Single deletion: Open the target image detail page and click the Delete button on the page.

Deletion operation guide

Warning

Deletion is irreversible. Once deletion is confirmed, all feature data and associated information of the image will be permanently lost. It is recommended to verify the process in a test gallery first, and destructive testing directly in production environments is strictly prohibited.

Best practice: deactivate target images

In most business scenarios, if you are not sure whether an image may be used again in the future, it is recommended to use deactivation instead of deletion.

  • Feature characteristics: A deactivated target image remains in the database list, but will not participate in the cloud recognition search process. However, it will still occupy recognition quota.
  • Deactivation method: Select the recognition image in the management page and click Deactivate.

Deactivation operation guide

Delete target images using API

Recognition images can be automatically cleaned up through REST API.

Preparation

Before starting, read Delete target image API documentation and prepare the following resources:

  • CRS AppId
  • API Key / Secret or Token
  • Server-end URL (port 443)
  • TargetId: The unique ID of the target image to delete. If TargetId does not exist, the API will return statusCode: 404 (Target not found).

Replace the placeholders with actual parameters and run the curl script.

  • Your-Server-side-URL -> actual API host
  • Your-Token -> actual API Key Authorization Token
  • Your-CRS-AppId -> your appId
  • Your-todo-TargetId -> the targetId of the target to delete
curl -X DELETE "https://<Your Server-side-URL>/target/<Your-todo-TargetId>?appId=<Your-CRS-AppId>" \
  -H "Content-Type: application/json" \
  -H "Authorization: <Your-Token>" 

Related topics: