del(file or directory)
Example
if del("/SCRIPTS/TOOLS/deleteme.txt") == 0 then
-- successfully deleted file
else
-- failed to delete file
endParameters
Return value
Last updated
Was this helpful?
@status current Introduced in 2.9.0
if del("/SCRIPTS/TOOLS/deleteme.txt") == 0 then
-- successfully deleted file
else
-- failed to delete file
endPath to file or directory to be deleted
Returns FRESULT (e.g. 0=OK, 4=File not found, 5=Path not found, 6=Path invalid)
Last updated
Was this helpful?
Was this helpful?