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
| Field | Value |
|---|---|
| Display | Destroy All Site Objects |
| Category | building |
| Access | ScriptCheat |
| Scope | B1Standalone |
| Tags | Experimental |
| Aliases | — |
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| confirm_phrase | string | yes | — | Must be exactly "destroy all objects". Guards against accidental invocation. |
Usage
await inzoi.cli.execute('building.destroy_all_objects', {
confirm_phrase: '',
});