route for deleting record