Navigation
API > API/Plugins > API/Plugins/EditorScriptingUtilities > API/Plugins/EditorScriptingUtilities/UEditorAssetLibrary
Description
Delete an asset from the Content Browser that is already loaded. This is a Force Delete. It doesn't 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. Delete operations
| Name | DeleteLoadedAsset |
| Type | function |
| Header File | /Engine/Plugins/Editor/EditorScriptingUtilities/Source/EditorScriptingUtilities/Public/EditorAssetLibrary.h |
| Include Path | #include "EditorAssetLibrary.h" |
| Source | /Engine/Plugins/Editor/EditorScriptingUtilities/Source/EditorScriptingUtilities/Private/EditorAssetLibrary.cpp |
UFUNCTION (BlueprintCallable, Category="Editor Scripting | Asset")
static bool DeleteLoadedAsset
(
UObject * AssetToDelete
)
True if the operation succeeds.
Parameters
| Name | Remarks |
|---|---|
| AssetToDelete | Asset that we want to delete. |