public static async Task DeleteAsync() { if (logHandler != null) { await logHandler.DeleteAsync(Filename); } messages.Clear(); }