RemoveFile

From Spheriki

Jump to: navigation, search

Deletes a file.


Usage

bool RemoveFile(filename);
  • filename String. Path to a file within the current game's directory. A filename prefixed with "/common/" will delete files from within the common files directory in ~/sphere.

Examples

RemoveFile("spritesets/foobar.rss");

Deletes the spriteset named foobar.rss in the spritesets subdirectory of the current game directory.


Notes

  • This function only became available in Sphere v1.5. It was unavailable in earlier versions.
  • Files removed with this function are unrecoverable.
Personal tools