Luna::Asset::delete_asset
RV delete_asset(asset_t asset)
Deletes one asset and all of its associated files.
This function performs the following tasks:1. Delete all files fetched from get_asset_files.
- Set asset path, type and data object to empty. The asset handle will still be valid after this operation, but the asset state will be set to AssetState::unregistered, and all operations to the asset is invalid.
Parameters
-
in asset
The asset handle of the asset to operate.