clear_traces function

Clear previous traces