React-Leaflet/React-Routing-Machine: Remove route and waypoints

I am using the following packages for my map: “leaflet-routing-machine”: “^3.2.12”, “leaflet”: “^1.7.1”, “react-leaflet”: “^2.7.0&…