Delete Asset
Permanently delete an asset. REFUSES by default if anything still references it, because deleting a referenced asset breaks whatever pointed at it and the damage does not surface until that other asset is loaded. This is NOT undoable - confirm with the user before calling it.
hf_delete_assetWriteDestructiveArguments
| Name | Type | Description |
|---|---|---|
objectreq | string | Asset path to delete. Must be under /Game/. |
delete_referenced | boolean = false | Delete even when other assets reference this one. Those references will break. Only pass this when you have shown the user the referencer list and they accepted it. |
Related tools
Nearby in Assets and discovery:
- Create Folder
- Create Material Instance
- Duplicate Asset
- Find Assets
- Get Asset Info
- List Asset Classes
- Open Level
- Rename Asset
All 11 tools in Assets and discovery — 2 more not listed here.