API Reference › Fs › Fs.remove
method

Fs.remove

Fs.remove(p) -> bool

Deletes a file, returning true on success. Use it to clear a save slot or a temporary export.

Parameters

pthe path to delete

Example

program Remove {
  entry {
    if Fs.remove("saves/slot1.json") { print(1) } else { print(0) }
  }
}
← All symbols