# stopLocalize Source: https://www.nianticspatial.com/docs/api/kotlin/com.nianticspatial.nsdk.vps2.Vps2Session.stopLocalize/ stopLocalize --- ## Declaration fun stopLocalize(siteId: String? = null) #### Summary Stops localizing against previously requested sites. Unregisters the site's assets, removes their anchors, and removes the map data they seeded. Call it before stop so the site's maps are not localization targets after a later start. Requests for the site still in progress are cancelled, and their records end as Vps2LocalizationRequestStatus.FAILED. ### Parameters | Name | Type | Summary | | --- | --- | --- | | siteId | String? | The site to stop localizing to, or null (the default) to stop every site requested in this session. | ---