public default <S2, E2> Traversal.Admin<S2, E2> removeStep(final Step<?, ?> step) throws IllegalStateException {
            return this.removeStep(TraversalHelper.stepIndex(step, this));
        }
Remove a {@link Step} from the traversal.

@param step the step to remove
@param <S2> the new start type of the traversal (if the removed step was a start step)
@param <E2> the new end type of the traversal (if the removed step was an end step)
@return the newly modulated traversal
@throws IllegalStateException if the {@link TraversalStrategies} have already been applied
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/Traversal.java