I've been trying to remove the particular query (ex: "remove=me") from the URL but it seems like there is no API for it
use url::{Url};
fn main(){
let mut url = Url::parse("https://www.example.com/foo?id=1&remove=me").unwrap();
url.set_query(None); // This will remove all the query parameters
println!("{}", URL);
// expected result: https://www.example.com/foo?id=1
// actual result: https://www.example.com/foo
}