Table of Contents

Delete target image

EasyAR provides two ways to handle recognition images that are no longer needed: permanent deletion and temporary deactivation. To ensure the stability of the production environment, please carefully read the following instructions.

Through the EasyAR web management center

  • Steps: Log in to the EasyAR developer center -> Cloud recognition management -> Select the corresponding image library -> Click Manage to enter the image library management interface.
  • Deletion methods:
    • Batch deletion: Check the target images in the list, click Delete, and confirm.
    • Single deletion: Click to enter the details page of the target image, then click the Delete button on the page.

Deletion operation guide

Warning

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

Best practices: deactivating target images

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

  • Features: Deactivated target images remain in the database list but do not participate in the cloud recognition search process. However, they occupy recognition quota.
  • Deactivation method: Check the recognition images in the management interface and click Deactivate.

Deactivation operation guide

Using the API to delete target images

Automated cleanup of recognition images can be achieved through the REST API.

Preparation

Before starting, read the 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 be deleted. If the TargetId does not exist, the API will return statusCode: 404 (Target not found).

Please replace the placeholder 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 → Target ID to be deleted
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: