Minecraft-Command to remove all dropped sandstone [duplicate]

Solution 1:

As @infek said, /kill @e[type=item] is a good option. However, you need to specify nbt in order to kill only sandstone: /kill @e[type=minecraft:item,nbt={Item:{id:"minecraft:sandstone"}}].