删除目录。
static Future<void> deleteDirectory(String directoryPath) async { Directory directory = Directory(directoryPath); await directory.delete(recursive: true); }