merged new delete function and get_urls functions on app.py