Navigation
API > API/Plugins > API/Plugins/EditorScriptingUtilities > API/Plugins/EditorScriptingUtilities/UEditorAssetLibrary
Description
Delete assets from the Content Browser that are already loaded. This is a Force Delete. It doesn't check if the assets have 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 files as deleted.
| Name | DeleteLoadedAssets |
| 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 DeleteLoadedAssets
(
const TArray < UObject * > & AssetsToDelete
)
True if the operation succeeds.
Parameters
| Name | Remarks |
|---|---|
| AssetsToDelete | Assets that we want to delete. |