Table of Contents

Delete sparse spatial maps

EasyAR provides two ways to handle spatial map data that is no longer needed: permanent deletion and temporary deactivation. To ensure stability in production environments, we recommend that you carefully read the following instructions.

Delete through EasyAR Web

  • Log in to EasyAR Developer Center ->SpatialMap -> select the corresponding map library -> click Manage to enter the map library management page.
  • 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 not sure whether a map may be needed again in the future, we recommend using Deactivate instead of Delete.

  • Functional characteristics: A deactivated spatial map remains in the database list, but will not participate in recognition and localization. However, it still consumes recognition quota.
  • Deactivation method: In the management page, select the recognition map and click Deactivate.

Deactivation operation guide

Delete using API

Sparse spatial maps can be automatically cleaned up through the REST API.

Preparation

Before you begin, 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: The unique ID of the map to delete. If the MapId does not exist, the API returns Http Status 404.

Replace the placeholders 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 -> the MapId to delete
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: