Removing media from the url's to be refreshed