Skip to main content

building.destroy_all_objects

Overview

  • [Build Mode Only] DESTRUCTIVE. Removes every object and wall from the current site and refunds their value to the household wallet. Dev-locked objects are kept. This is undoable with building.undo, but ONLY until build mode is left - leaving build mode commits the empty site. Requires confirm_phrase="destroy all objects" and phase == 'ready' (see build.get_mode_state).

Metadata

FieldValue
DisplayDestroy All Site Objects
Categorybuilding
AccessScriptCheat
ScopeB1Standalone
TagsExperimental
Aliases—

Parameters

NameTypeRequiredDefaultDescription
confirm_phrasestringyes—Must be exactly "destroy all objects". Guards against accidental invocation.

Usage

await inzoi.cli.execute('building.destroy_all_objects', {
confirm_phrase: '',
});