public static void RemoveAuditableEntity(string solutionDirectory) { var classPath = ClassPathHelper.CommonDomainClassPath(solutionDirectory, "AuditableEntity.cs"); if (!Directory.Exists(classPath.ClassDirectory)) { throw new DirectoryNotFoundException($"The `{classPath.ClassDirectory}` directory could not be found."); } if (!File.Exists(classPath.FullClassPath)) { throw new FileNotFoundException($"The `{classPath.FullClassPath}` file could not be found."); } File.Delete(classPath.FullClassPath); }