clearAmbientCache

Erase resources from the ambient cache, freeing storage space.

Erases the ambient cache, freeing resources. Note that this operation can be potentially slow if packing the database occurs automatically (OfflineManager.runPackDatabaseAutomatically).

Resources overlapping with offline regions will not be affected by this call.

Parameters

callback

the callback to be invoked when the ambient cache was cleared or when the operation erred.