# stopLocalize Source: https://www.nianticspatial.com/docs/api/swift/NSDK.NSDKVps2Session.method-stopLocalize/ stopLocalize --- ## Declaration func stopLocalize(siteId: String? = nil) throws #### 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 localization request records end as failed. #### Throws An NSDKError if the native call fails unexpectedly. ### Parameters | Name | Type | Summary | | --- | --- | --- | | siteId | String? | The site to stop localizing to, or `nil` (the default) to stop every site requested in this session. | ---