// ---------------------------------------------------------------------- /// Deletes CSharp code file. /// /// @param folderPath The absolute path of the code generation folder. /// @param className The name of the type/file. /// public static void DeleteCSharpFile(string folderPath, string className) { var filePath = "Assets/" + Folder.AbsoluteToAssetPath(folderPath) + "/" + className + kFileExtension; AssetDatabase.DeleteAsset(filePath); }