Is there a way to remove data from a trace without having to delete the trace in ploltly.js?

Not much more to say than the title, just looking for a way to do the opposite of .extendTraces.
Thanks in advance