Delete a document of any type
delete-documentDelete Foundry VTT documents by UUID or type and ID, with dry-run preview and refusal of protected entities like active scenes or folders with contents.
Instructions
Generic fallback: delete one document of any type, by uuid or by documentType and id. Needs the level "create, change and delete" of its kind, for an embedded document that of the document it belongs to; kinds without a level cannot be deleted. Refused for a folder with contents, a playlist or track a scene is linked to, the active scene and chat messages of others. dryRun shows what would go, embedded documents included. Prefer journal-delete, journal-delete-page, delete-scene, manage-actors, delete-playlist, delete-roll-table and delete-tokens where they fit. Compendium entries are deleted with delete-compendium-entries.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Id of the document, together with documentType | |
| uuid | No | uuid of the document, e.g. "Actor.abc", "Scene.abc.Token.def", "Compendium.dnd5e.monsters.Actor.abc" | |
| dryRun | No | Only check and preview; nothing is written. Recommended before the real call | |
| parentUuid | No | uuid of the document that holds an embedded one, e.g. "Actor.abc" for its items, "Scene.abc" for its walls | |
| documentType | No | Foundry document name, e.g. "Actor", "JournalEntryPage", "Combat", "Wall"; with id when no uuid is given |