UEditorAssetLibrary::DeleteLoadedAssets

Delete assets from the Content Browser that are already loaded.

Windows
MacOS
Linux

References

Module

EditorScriptingUtilities

Header

/Engine/Plugins/Editor/EditorScriptingUtilities/Source/EditorScriptingUtilities/Public/EditorAssetLibrary.h

Include

#include "EditorAssetLibrary.h"

Source

/Engine/Plugins/Editor/EditorScriptingUtilities/Source/EditorScriptingUtilities/Private/EditorAssetLibrary.cpp

Syntax

[UFUNCTION](Programming/UnrealArchitecture/Reference/Functions)(BlueprintCallable, Category="Editor Scripting | Asset")
static bool DeleteLoadedAssets
(
    const TArray< UObject * > & AssetsToDelete
)

Remarks

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.

Returns

True if the operation succeeds.

Parameters

Parameter

Description

AssetsToDelete

Assets that we want to delete.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss