delete_database_entry
Delete an RPG Maker MV database entry by ID, refusing while events, troops, or other records still reference it; use dryRun to preview or force to override.
Instructions
DESTRUCTIVE: delete a database entry by nulling it out in its data file (written immediately; not undoable — re-create it if needed; IDs are never reused). The delete is refused while anything still references the entry, listing every place: events, common events, troop pages, page conditions, map encounters, the starting party, actor classes and starting equipment, class learnings, enemy actions and drops, troop members, traits, item and skill effects, animations. Fix those first, pass dryRun:true to preview the list, or force:true to delete anyway (the result then lists brokenReferences). References are never cleaned up automatically. NEVER delete skill 1 (Attack), skill 2 (Guard) or state 1 (KO); the engine uses them directly. Supported entities: actors, classes, skills, items, weapons, armors, enemies, states, troops, animations. Returns the deleted object for reference; fails with an error if the ID does not exist.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ID of the entry to delete (never skill 1/2 or state 1) | |
| force | No | Delete even though something still references it (default false) | |
| entity | Yes | Which database contains the entry to delete |