Skip to content

resetDatabase

MicroBlaster edited this page Jul 10, 2020 · 1 revision

Purpose: Resets the specified database, configuration, and optionally script data.

Syntax: resetDatabase {Database} [ScriptData]

{name}: The name of the database to be reset. [ScriptData]: If specified, all script data files matching the database name will be deleted.

Notes: WARNING - this action cannot be undone. The database header will be retained, but all other information will be lost. The command is great when a gameop rebangs a game, or you are doing script testing.

Example:

# Reset all databases - use with caution - all data will be reset!
listDatabases $db
setVar $a 1
while ($a <= $db)
	resetDatabase $db[$a] ScriptData
	add $a 1
end

Clone this wiki locally