Difference between revisions of "Delete"
From ComputerCraft Wiki
Line 1: | Line 1: | ||
{{Stub|Needs more info about the program itself, perhaps an image?}} | {{Stub|Needs more info about the program itself, perhaps an image?}} | ||
− | Delete is a [[CraftOS Shell|built in program for computers and turtles]] that will delete the specified source file or directory. As of version 1.6, it supports wildcards by use of [[fs.find]]. It ''cannot'' remove read-only files such as the rom folder or anything in the rom folder. | + | Delete is a [[CraftOS Shell|built in program for computers and turtles]] that will delete the specified source file or directory. As of version 1.6, it supports wildcards by use of [[fs.find]]. It ''cannot'' remove read-only files such as the rom folder or anything in the rom folder. Instead of delete, it is also possible to use rm (remove). |
{{Example | {{Example |
Latest revision as of 14:18, 8 May 2015
This page is a stub. Please help us by expanding it.
|
Delete is a built in program for computers and turtles that will delete the specified source file or directory. As of version 1.6, it supports wildcards by use of fs.find. It cannot remove read-only files such as the rom folder or anything in the rom folder. Instead of delete, it is also possible to use rm (remove).
Example | |
Removes regular file /foo | |
Code |
delete /foo |
Example | |
Removes all the files and directories | |
Code |
delete * |