How to destroy a trace?

Hello, i was wondering how to destroy a trace after time/distance. I want to make a melee weapon with traces.
I was looking everywhere and i couldn’t find anything like this.

I am pretty sure a line trace only exists the frame it is cast unless you store the information from it to a variable. The debug information that displays the line trace in the editor is just stored to display that effect.