:doc:`NeptuneData <../../neptunedata>` / Client / delete_ml_endpoint

******************
delete_ml_endpoint
******************



.. py:method:: NeptuneData.Client.delete_ml_endpoint(**kwargs)

  

  Cancels the creation of a Neptune ML inference endpoint. See `Managing inference endpoints using the endpoints command <https://docs.aws.amazon.com/neptune/latest/userguide/machine-learning-api-endpoints.html>`__.

   

  When invoking this operation in a Neptune cluster that has IAM authentication enabled, the IAM user or role making the request must have a policy attached that allows the `neptune-db\:DeleteMLEndpoint <https://docs.aws.amazon.com/neptune/latest/userguide/iam-dp-actions.html#deletemlendpoint>`__ IAM action in that cluster.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/neptunedata-2023-08-01/DeleteMLEndpoint>`_  


  **Request Syntax**
  ::

    response = client.delete_ml_endpoint(
        id='string',
        neptuneIamRoleArn='string',
        clean=True|False
    )
    
  :type id: string
  :param id: **[REQUIRED]** 

    The unique identifier of the inference endpoint.

    

  
  :type neptuneIamRoleArn: string
  :param neptuneIamRoleArn: 

    The ARN of an IAM role providing Neptune access to SageMaker and Amazon S3 resources. This must be listed in your DB cluster parameter group or an error will be thrown.

    

  
  :type clean: boolean
  :param clean: 

    If this flag is set to ``TRUE``, all Neptune ML S3 artifacts should be deleted when the job is stopped. The default is ``FALSE``.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'status': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **status** *(string) --* 

        The status of the cancellation.

        
  
  **Exceptions**
  
  *   :py:class:`NeptuneData.Client.exceptions.UnsupportedOperationException`

  
  *   :py:class:`NeptuneData.Client.exceptions.BadRequestException`

  
  *   :py:class:`NeptuneData.Client.exceptions.InvalidParameterException`

  
  *   :py:class:`NeptuneData.Client.exceptions.MLResourceNotFoundException`

  
  *   :py:class:`NeptuneData.Client.exceptions.ClientTimeoutException`

  
  *   :py:class:`NeptuneData.Client.exceptions.PreconditionsFailedException`

  
  *   :py:class:`NeptuneData.Client.exceptions.ConstraintViolationException`

  
  *   :py:class:`NeptuneData.Client.exceptions.InvalidArgumentException`

  
  *   :py:class:`NeptuneData.Client.exceptions.MissingParameterException`

  
  *   :py:class:`NeptuneData.Client.exceptions.IllegalArgumentException`

  
  *   :py:class:`NeptuneData.Client.exceptions.TooManyRequestsException`

  