Version: 5.5

AssetDatabase.MoveAssetToTrash

Switch to Manual
public static bool MoveAssetToTrash (string path);

Description

Перемещает ассет по пути в корзину.

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.