Difference between revisions of "Fs.delete"
From ComputerCraft Wiki
(Copy description from API page and use type template) |
|||
(One intermediate revision by one other user not shown) | |||
Line 2: | Line 2: | ||
{{Function | {{Function | ||
|name=fs.delete | |name=fs.delete | ||
− | |args= | + | |args={{Type|string}} path |
|api=fs | |api=fs | ||
− | |desc=Deletes a file or directory | + | |desc=Deletes a file or directory. A nonexistent target is ignored; a directory is deleted along with all its contents. |
|examples= | |examples= | ||
{{Example | {{Example | ||
Line 11: | Line 11: | ||
}} | }} | ||
}} | }} | ||
+ | |||
+ | [[Category:Lua_Core_Functions]] |
Latest revision as of 19:43, 22 April 2013
Function fs.delete | |
Deletes a file or directory. A nonexistent target is ignored; a directory is deleted along with all its contents. | |
Syntax | fs.delete(string path) |
Returns | nil |
Part of | ComputerCraft |
API | fs |
Examples
Example | |
Deletes a file or directory called "test1" in the root directory | |
Code |
fs.delete("test1") |