Difference between revisions of "Delete"

From ComputerCraft Wiki
Jump to: navigation, search
Line 2: Line 2:
 
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.
  
{{Examples
+
{{Example
 
|desc=Removes regular file /foo
 
|desc=Removes regular file /foo
 
|code=delete /foo
 
|code=delete /foo
 
}}
 
}}
 +
 
{{Example
 
{{Example
 
|desc=Removes all the files and directories
 
|desc=Removes all the files and directories

Revision as of 14:17, 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.


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




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