ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Shared functions
  3. fileDelete

Function

fileDelete

Server and clientFilesIdentical to MTA:SA

Deletes a file. The file must not be open at the time.

Syntax

bool fileDelete(string filePath)

Arguments

filePathstring
File path.

Returns

true when deleted.

Example

if fileExists("temp.txt") then fileDelete("temp.txt") end

See also