docs: def delete_endpoint(self, delete_endpoint_config=True):
          """Delete the Amazon SageMaker endpoint backing this predictor. Also delete the endpoint configuration attached
          to it if delete_endpoint_config is True.
  
          Args:
              delete_endpoint_config (bool, optional): Flag to indicate whether to delete endpoint configuration together
                  with endpoint. Defaults to True. If True, both endpoint and endpoint configuration will be deleted. If
                  False, only endpoint will be deleted.
  
          """
          if delete_endpoint_config:
              self._delete_endpoint_config()
  
          self.sagemaker_session.delete_endpoint(self.endpoint)