code: def delete_endpoint(self):
          
          self._ensure_latest_training_job(error_message='Endpoint was not created yet')
          self.sagemaker_session.delete_endpoint(self.latest_training_job.name)
docs: Delete an Amazon SageMaker ``Endpoint``.
  
          Raises:
              ValueError: If the endpoint does not exist.