Difference between revisions of "Fs.delete"

From ComputerCraft Wiki
Jump to: navigation, search
m (Moved to CAT:LuaCoreFunctions)
Line 11: Line 11:
 
}}
 
}}
 
}}
 
}}
 +
 +
[[Category:Lua_Core_Functions]]

Revision as of 18:46, 28 November 2012


Grid Redstone.png  Function fs.delete
Deletes a file or directory (a nonexistent target is ignored; a directory will be deleted along with all its contents)
Syntax fs.delete(string path)
Returns nil
Part of ComputerCraft
API fs

Examples

Grid paper.png  Example
Deletes a file or directory called "test1" in the root directory
Code
fs.delete("test1")