fs.delete

From ComputerCraft Wiki
Revision as of 19:43, 22 April 2013 by Hawk777 (Talk | contribs) (Copy description from API page and use type template)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Grid Redstone.png  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

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