human
how to remove parth of the url.
assistant
Here is a Python program to remove parth of the URL

import urllib.request, urllib.parse, urllib.error

def remove_path(url):
    """Remove path from url."""
    return url.split('/')[-1]

# Enter the url
url = 'https://www.google.com/maps/place/
Rosey,+Michigan/@42.500000,-84.416667/z/1000000.0m/e?hl=en-US&gl=us'

# Calling the function
print((remove_path(url)))

#Example Output
# e?hl=en-US&gl=us

#Remember to inspect code for bugs.