delete_database_entry
Delete a database entry permanently by nulling it out in its data file. IDs are never reused. References elsewhere break at runtime, so update them first with query/update tools.
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). References elsewhere are NOT cleaned up and will break at runtime: actors in the starting party, classes assigned to actors, skills in class learnings/enemy actions, items in chests/shops, enemies in troops, states in skill effects — check and update those first with query_database/update_database_entry. 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. Returns the deleted object for reference; fails with an error if the ID does not exist.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entity | Yes | Which database contains the entry to delete | |
| id | Yes | ID of the entry to delete (never skill 1/2 or state 1) |