Table of Contents

Sparse spatial map deletion

EasyAR provides two methods to handle spatial map data that is no longer needed: permanent deletion and temporary deactivation. To ensure production environment stability, please carefully read the following instructions.

Deletion via EasyAR web

  • Log in to the EasyAR developer center -> SpatialMap -> select the corresponding map library -> click Manage to enter the map library management interface.
  • Click to enter the spatial map details page, then click the Delete button on the page.

Permanent deletion operation guide

Best practice: temporary deactivation

In most business scenarios, if you are unsure whether a map will be used again in the future, we recommend using deactivation instead of deletion.

  • Feature: Deactivated spatial maps remain in the database list but will not participate in recognition and localization processes. However, they will occupy recognition quotas.
  • Deactivation method: Check the target map in the management interface, then click Deactivate.

Deactivation operation guide

Deletion using API

Automated cleanup of sparse spatial maps can be achieved through REST API.

Preparation

Before starting, please read the delete Spatial Map API documentation and prepare the following resources:

  • Spatial Map AppId
  • API Key / Secret or Token
  • Cloud URL
    • Users in China and Southeast Asia select: https://armap-api.easyar.com
    • Other users select: https://armap-api-na1.easyar.com
  • MapId: Unique ID of the map to be deleted. If the MapId does not exist, the API will return Http Status 404.

Please replace the placeholder with actual parameters and run the curl script

  • Your-Cloud-URL → Actual API URLs
  • Your-Token → Actual API Key Authorization Token
  • Your-SpatialMap-AppId → Your appId
  • Your-todo-MapId → MapId to be deleted
curl -X DELETE "https://armap-api-<cn1|na1>.easyar.com/map/<Your-todo-MapId>?appId=<Your-SpatialMap-AppId>" \
  -H "Content-Type: application/json" \
  -H "Authorization: <Your-Token>" 

Related topics: