AssetDatabase.MoveAssetToTrash
static function MoveAssetToTrash(path: string): bool;
static bool MoveAssetToTrash(string path);
static def MoveAssetToTrash(path as string) as bool
Description

Moves the asset at path to the trash.

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: "AssetsMyTextureshello.png" See Also: AssetDatabase.DeleteAsset.