Delete documents
deleteRemove Foundry VTT documents by ID or exact name; folder removal keeps contents unless withContents is set.
Instructions
Deletes documents by id or exact name. Deleting a Folder keeps its contents (moved up a level) unless withContents.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"type": "<type>"
},
"name": "delete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | No | ||
| type | Yes | Document type: Actor, Item, Scene, JournalEntry, Macro, RollTable, Playlist, Cards, Folder, ChatMessage, Combat, User | |
| names | No | ||
| dryRun | No | Report what would happen without changing anything | |
| folder | No | Folder path to disambiguate names | |
| withContents | No |