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

************************
delete_sparql_statistics
************************



.. py:method:: NeptuneData.Client.delete_sparql_statistics()

  

  Deletes SPARQL statistics

   

  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\:DeleteStatistics <https://docs.aws.amazon.com/neptune/latest/userguide/iam-dp-actions.html#deletestatistics>`__ IAM action in that cluster.

  

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


  **Request Syntax**

  ::

    response = client.delete_sparql_statistics()
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'statusCode': 123,
          'status': 'string',
          'payload': {
              'active': True|False,
              'statisticsId': 'string'
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **statusCode** *(integer) --* 

        The HTTP response code: 200 if the delete was successful, or 204 if there were no statistics to delete.

        
      

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

        The cancel status.

        
      

      - **payload** *(dict) --* 

        The deletion payload.

        
        

        - **active** *(boolean) --* 

          The current status of the statistics.

          
        

        - **statisticsId** *(string) --* 

          The ID of the statistics generation run that is currently occurring.

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

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

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

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

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

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

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

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

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

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

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

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

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

  