I navigate to a certain page in my app with a query parameter. After I get the parameter from the URL I want to delete it, ideally I would have this:
HTML5 includes the history.pushState API, which allows you to add history entries and change the URL currently displayed in the browser. (Manipulating the browser history)
window.history.pushState('', 'title', '/expected-url');
You can use this line of code in your Angular2 application. This will just change the URL not state of the application. (results query param remove from given url)