Version: 2017.2

AssetDatabase.MoveAssetToTrash

切换到手册
public static bool MoveAssetToTrash (string path);

描述

将路径下的资源移动到垃圾箱。

Returns true if the asset has been successfully removed, false if it doesn't exit or couldn't be moved to the trash. All paths are relative to the project folder, for example: "Assets/MyTextures/hello.png" See Also: AssetDatabase.DeleteAsset.