/Engine/Plugins/Editor/EditorScriptingUtilities/Source/EditorScriptingUtilities/Public/EditorAssetLibrary.h
Delete the packages inside a directory. If the directory is then empty, delete the directory. 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 file as deleted. Assets will be loaded before being deleted. The search is always recursive. It will try to delete the sub folders.
True if the operation succeeds.
[UFUNCTION](Programming/UnrealArchitecture/Reference/Functions)(BlueprintCallable, Category="Editor Scripting | Asset") static bool DeleteDirectory ( const [FString](API\Runtime\Core\Containers\FString) & DirectoryPath )