# deleteCached Source: https://www.nianticspatial.com/docs/api/swift/NSDK.NSDKPlaybackCacheSession.method-deleteCached/ deleteCached --- ## Declaration func deleteCached(scanId: String) throws #### Summary Deletes a scan's cached recording. The cache does not track datasets it has returned: close every dataset opened from the scan first. #### Throws PlaybackOpenError.sessionEnded once the NSDKSession is released; NSDKError.invalidOperation while this session is opening the scan; .invalidArgument if scanId is malformed; .unknown if it could not be removed. ### Parameters | Name | Type | Summary | | --- | --- | --- | | scanId | String | - | ---