# destroyAll Source: https://www.nianticspatial.com/docs/api/swift/NSDK.NSDKSession.method-destroyAll/ destroyAll --- ## Declaration @MainActor func destroyAll() #### Summary Destroys all *feature* sessions at once, releasing their native resources. This does not release the NSDKSession itself -- the session stays usable and can create new feature sessions afterwards. The session is released when its last reference goes away. > **Info:** > > **Notice** > > Important: Must be called from the main thread. ---