Added helper function to remove interfaces from router before deleting it.