Method RemoveDirectoryIfEmpty RemoveDirectoryIfEmpty(DirectoryInfo) Declaration public static void RemoveDirectoryIfEmpty(this DirectoryInfo directory) Parameters Type Name Description DirectoryInfo directory