Navigation
Unreal Engine C++ API Reference > Plugins > BlueprintFileUtils > UBlueprintFileUtilsBPLibrary
References
Module | BlueprintFileUtils |
Header | /Engine/Plugins/BlueprintFileUtils/Source/BlueprintFileUtils/Public/BlueprintFileUtilsBPLibrary.h |
Include | #include "BlueprintFileUtilsBPLibrary.h" |
Source | /Engine/Plugins/BlueprintFileUtils/Source/BlueprintFileUtils/Private/BlueprintFileUtilsBPLibrary.cpp |
UFUNCTION&40;BlueprintCallable, Category&61;"FileUtils"&41;
static bool DeleteDirectory
&40;
const FString & Directory,
bool bMustExist,
bool bDeleteRecursively
&41;
Remarks
Deletes a directory and all the files in it and optionally all sub-directories and files within it true if the directory was succesfully deleted, false otherwise
Parameters
Name | Description |
---|---|
Directory | The Directory to delete |
bMustExist | If true, the directory must exist or the return value will be false |
bDeleteRecursively | If true, all sub-directories will be deleted as well. If false and there are contents in the directory, the delete operation will fail. |