Hello @Anonymous ,
If no expiration is set during anchor creation, the anchor will only expire when deleted manually.
There are three ways to locate an anchor as specified in Locate a cloud spatial anchor
You can use one strategy on a watcher at a time.:
- Locate anchors by identifier.
- Locate anchors connected to a previously located anchor.
- Locate anchor using Coarse relocalization.
I understand that, errors can happen and it is not ideal that we have missing\unknown anchors on our account. When saving an anchor to Cosmos DB I would recommend that you "protect" your scenario from these situations, for example do not save an anchor in ASA account if no confirmation is received from Cosmos DB and when deleting an anchor from Cosmos DB make use of the Change Feed to Trigger an Azure Function that will run a script to remove the anchor from ASA account as well.
Thanks!
Remember:
- Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer. Here is how.
- Want a reminder to come back and check responses? Here is how to subscribe to a notification.