USE [SRO_VT_SHARD] GO DECLARE @CharID INT = 'CharIDHere' DECLARE @TSlots INT = 0 DECLARE @CharSlot INT = 0 SELECT @TSlots = COUNT(Slot) from _Inventory WHERE CharID = @CharID WHILE @CharSlot <= @TSlots BEGIN EXEC [_STRG_DEL_ITEM_NoTX] 1, @CharID, @CharSlot SET @CharSlot = @CharSlot + 1 END