Skip to content

deletefile()

Maingron edited this page Apr 2, 2021 · 2 revisions

Delete a file

Code

deletefile(path);

Variables

  • path = Path of the desired file to delete [String]

Example

deletefile("C:/Documents and Settings/pi.txt");
deletefile("C:/Documents and Settings/");

Explanation

deletefile() allows you to delete a file or directory within IOfs.
Note: Files inside a directory won't be deleted, only the directory itself. Imagine the directory being a portal. You just have to recreate the portal to see your files again. You'd have to delete the files individually.

Clone this wiki locally