Here is some context: I've made some command block code to make lightning arrows. However, I want the arrows to instantaneously despawn after an arrow is shot. How do I do this?
Here is the command block code if you need it.
execute at @e[type=minecraft:arrow] run summon minecraft:lightning_bolt