public static void deleteAll() {
        synchronized (SAVE_DELETE_LOCK) {
            try {
                File[] files = BlockCanaryInternals.getLogFiles();
                if (files != null && files.length > 0) {
                    for (File file : files) {
                        file.delete();
                    }
                }
            } catch (Throwable e) {
                Log.e(TAG, "deleteAll: ", e);
            }
        }
    }
Delete obsolete log files, which is by default 2 days.
blockcanary-analyzer/src/main/java/com/github/moduth/blockcanary/LogWriter.java