Skip to content
File systemReference

delfile

Delete one workspace file.

Details#

Delete one workspace file. No return values.

Signature#

Luau
delfile(path: string): ()

Parameters#

ParameterTypeDescription
pathstringUTF-8 path relative to the application's workspace.

Returns#

No return values.

Examples#

Local example

Luau
writefile("docs-example/delete-me.txt", "temporary")
delfile("docs-example/delete-me.txt")