Future<void> deleteThread(String id) async { var rep = createThreadsRepository(); await rep.delete(id); await deleteSavedThread(id); }