Here is removing the item from Autoloot.
Syorta_ore = 6405
def onReceiveAddItemToBackpack(slot, itemId):
if script.GetItemsCountEx(Syorta_ore, True, False, False) >= 3 :
script.RemoveItemFromList(1, Syorta_ore) # deletes the autoloot itemId
script.StatusMessage("ok")