deleteInventory
From SmartBots Developers Docs
Revision as of 13:08, 18 September 2025 by Gtaskincentral (Talk | contribs) (Created page with "{{DISPLAYTITLE:{{SUBPAGENAME}}}} <onlyinclude>Commands bot to delete an inventory item.</onlyinclude> <syntaxhighlight lang="javascript"> Bot.deleteInventory(uuid); </syntaxh...")
Commands bot to delete an inventory item.
Bot.deleteInventory(uuid);
Reference
This command accepts the following parameters:
| Variable | Required | Description | |
|---|---|---|---|
| uuid | yes | The inventory UUID of the item. Use the Personal Bot Control Panel to get this UUID. | |
| Output: | |||
| Function returns a Promise with the following data: | |||
| success | bool | true if command completed successfully | |
| error | string | error string if command has failed | |
Examples
Bot.deleteInventory(uuid)
.then(function(result) {
if(result.success) {
console.log("The inventory item was deleted.");
} else {
console.log("Error executing deleteInventory: " + result.error);
}
});