ESODecoded

DestroyItem

ESO Lua API function — used by 40 of the 3,030 addons we indexed (combined 14,400,887 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.

Official signature

DestroyItem([Bag|#Bag] bagId, integer slotIndex)

Real usage — from Dolgubon's Lazy Writ Crafter

			elseif action == 4 then
				 DestroyItem(bag , slot)
				 d(zo_strformat(WritCreater.strings['lootingDestroyItem'], link))

Short excerpt from the shipping addon Dolgubon's Lazy Writ Crafterits ESOUI page; the code belongs to its author. Shown because documentation without a working example is half a reference.

Most-downloaded addons using it

AddonTotal downloads
Dolgubon's Lazy Writ Crafter9,498,314
ESO Master Recipe List2,130,985
Dustman1,178,205
PersonalAssistant (Banking, Consume, Junk, Loot, Repair, Worker) [Masteroshi430's branch]487,232
Lykeion's AutoLoot+177,775
Bandits Loot Manager134,811