Erfile

erfile path

Stands for erase file. Erases any type of file if it is not locked. The input must be the name of a file in the current directory or a full path. A full path starts with the name of the drive. Backslashes are used to separate the names of directories, subdirectories, and files. The deleted file is not moved to the Recycle Bin.

Examples:

erfile "farm

erfile "C:\projects\farm

When there is more than one file with the same name (e.g. quake.mw2 and quake.jpg), you need to add the extension.

erfile "quake.mw2

Otherwise, MicroWorlds will display the following error message:

There's more than one file named quake

If one of the elements of the path has spaces, vertical bars must enclose the whole path:

erfile "|C:\My projects\farm|