Added socket functionality to delete routes