DeleteFile

This function deletes a file.

Syntax

Parameters

Remarks

This function will have no effect if Lua sandboxing is enabled.

Example

#include "Leadwerks.h"

using namespace Leadwerks;

int main(int argc, const char *argv[])
{
//Create a folder
std::string path = "MyFile.txt";
FileSystem::CreateFile(path);

//Delete the new folder
FileSystem::DeleteFile(path);

return 0;
}