Inventory Query - remove item

This picture show use inventory query function on item. If I have in backpack two or more rock, destroy this actor. But item rocks in inventory still I have.