def METHOD_NAME(vm):
  """Uninstalls TensorFlow Serving on the VM."""
  vm.RemoteCommand('sudo pip uninstall -y tensorflow_serving_api')
  vm.RemoteHostCommand('sudo docker rmi benchmarks/tensorflow-serving')
  vm.RemoteHostCommand('sudo docker rmi benchmarks/tensorflow-serving-devel')
  del vm