My goal is to remove all existing Elytras from our server (only on the overworld, but not much of a problem otherwise, since we can just respawn the end).
I read about the command /kill @e[type=Item]
on reddit. It did not work for me somehow. I tried it using: /kill @e[type=elytra]
and got the message "Selector '@e[type=minecraft:elytra]' found nothing. Entity type type 'minecraft:elytra' is invalid". I took one out of the chest, threw it on the ground, but I get the same message.
The entity type cannot be invalid IMHO, since /give <playername> elytra
works.
item
.elytra
is an item name but not an entity type./kill @e[type=Item]
should remove all dropped items, but only from chunks that are loaded. Are you wanting to remove the item from chests and unloaded chunks too?