This part of the code sample explains how to delete an already existing route.You can generate a valid unique route ID in the step Sequence Optimization - Create and Optimize a Sequence.