Trim bad data

Is there a way to remove a section of data that is incorrect without removing the entire ride?

There are some tools you can use externally (FITFileTools for example) that others have used to edit the data before bringing it into the system.