Difference between revisions of "Delete"

From ComputerCraft Wiki
Jump to: navigation, search
 
(2 intermediate revisions by the same user not shown)
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).
  
{{Examples
+
{{Example
 
|desc=Removes regular file /foo
 
|desc=Removes regular file /foo
 
|code=delete /foo
 
|code=delete /foo
 +
}}
 +
 +
{{Example
 
|desc=Removes all the files and directories
 
|desc=Removes all the files and directories
 
|code=delete *
 
|code=delete *
 
}}
 
}}
 +
  
 
[[Category:Programs]]
 
[[Category:Programs]]

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).


Grid paper.png  Example
Removes regular file /foo
Code
delete /foo




Grid paper.png  Example
Removes all the files and directories
Code
delete *