Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/UEditorAssetSubsystem
Description
Delete an asset that is already loaded. This is a Force Delete. It does not check if the asset has references in other Levels or by Actors. It will close all the asset editors and may clear the Transaction buffer (Undo History). Will try to mark the file as deleted.
| Name | DeleteLoadedAsset |
| Type | function |
| Header File | /Engine/Source/Editor/UnrealEd/Public/Subsystems/EditorAssetSubsystem.h |
| Include Path | #include "Subsystems/EditorAssetSubsystem.h" |
| Source | /Engine/Source/Editor/UnrealEd/Private/Subsystems/EditorAssetSubsystem.cpp |
UFUNCTION (BlueprintCallable, Category="Editor Scripting | Asset")
bool DeleteLoadedAsset
(
UObject * AssetToDelete
)
True if the operation succeeds.
Parameters
| Name | Remarks |
|---|---|
| AssetToDelete | Asset to delete. |