Table of Contents

Delete targets

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 operation instructions.

Operation via easyar web management center

  • Operation 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 target image details page, 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 the test image library first. Destructive testing in the production environment is strictly prohibited.

Best practice: target deactivation

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 api to delete targets

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

Preparation

Before starting, please read the Delete Target 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: