Caching.CleanCache

static function CleanCache () : boolean

Returns

boolean - True when cache cleaning succeeded, false if cache was in use.

Description

Delete all AssetBundle content that has been cached by the current application.

This function is not available to WebPlayer applications that use the shared cache.

if (GUILayout.Button("Uninstall Game"))
Caching.CleanCache ();