[UE4.26] File and Folder Management, Create, Find, Delete

DeleteFile

bool UBPLibrary::DeleteFile(FString Path)
{
IPlatformFile& FileManager = FPlatformFileManager::Get().GetPlatformFile();
return FileManager.DeleteFile(*Path);
}

DeleteDirectory

bool UBPLibrary::DeleteDirectory(FString Path)
{
IPlatformFile& FileManager = FPlatformFileManager::Get().GetPlatformFile();
return FileManager.DeleteDirectoryRecursively(*Path);
}

Reference Link: 
File and Folder Management, Create, Find, Delete

這個網誌中的熱門文章

Windows10 版本1607後可啟用支援長路徑檔名 (Maximum Path Length Limitation)

標準使用者如何執行需系統管理者權限的程式

Shared Memory