settings.clear

From ComputerCraft Wiki
Revision as of 03:14, 10 June 2016 by Bomb Bloke (Talk | contribs) (Extra link.)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Grid Redstone.png  Function settings.clear
Simply wipes all currently loaded settings. Compare settings.unset(), which wipes one setting at a time.

Note that when the system reboots, first the default settings will be reloaded, and then (if it exists on the root of the drive) the ".settings" file will also be reloaded. Saving an empty ".settings" file will not in any way affect the loaded defaults - if you want all default settings completely cleared on boot, then settings.clear() must be called on startup.
Syntax settings.clear()
Returns nil
Part of ComputerCraft
API settings


Grid disk.png Settings API Functions
settings.set - settings.get - settings.unset - settings.clear - settings.getNames - settings.load - settings.save