# clearCache Source: https://www.nianticspatial.com/docs/api/swift/NSDK.NSDKPlaybackCacheSession.method-clearCache/ clearCache --- ## Declaration func clearCache() throws #### Summary Deletes every cached scan recording. The cache does not track datasets it has returned: close every dataset opened from a scan first. #### Throws PlaybackOpenError.sessionEnded once the NSDKSession is released; .invalidOperation while opening any scan; .unknown if it could not be removed. ---