question: private static void deleteStackTrace ( WeakReference < Context > weakContext , String filename ) { Context context = null ; ArtisanLogUtil . debugLog ( "delete file " + filename ) ; if ( weakContext != null ) { context = weakContext . get ( ) ; if ( context != null ) { File file = new File ( filename ) ; if ( file . exists ( ) ) { file . delete ( ) ; } } } }
target:  Deletes the give filename and all corresponding files (same name, different extension).