Using the $location service, you can remove the search parameter by setting it to zero:
$location.search( 'status', null );
But you should notice that by default this will reload the current route. If you do not want to reload the current route, you can disable it in the route definition:
$routeProvider.when( '/order/:id', {
But $routeUpdate still works and can respond to.
Josh david miller
source share