Skip to content

API Item remove

SolWayward edited this page Dec 22, 2025 · 2 revisions

remove

Endpoint: gm.item.remove

Syntax

gm.item.remove <item_query> <count> <hero_query>

Parameters

Parameter Type Required Description
item_query string Yes Item identifier (StringId or partial name match)
count integer Yes Number of items to remove (range: 1-10000)
hero_query string Yes Hero identifier (StringId or partial name match)

Examples

gm.item.remove imperial_sword 5 player

Output:

Removed 5x Imperial Sword from Player's party inventory.
gm.item.remove food 100 lord_1_1

Notes

NOTE: Returns an error if the party doesn't have enough of the specified item.

TIP: Use gm.item.list_inventory to check inventory contents first.

Related Commands

Last Updated: 2025-12-16

Quick Links

🏠 Home | Quick Reference | Syntax Guide


Hero Commands
Clan Commands
Kingdom Commands
Settlement Commands
Item Commands
Troop Commands
Caravan Commands
Bandit Commands
Query Commands

Clone this wiki locally