:doc:`PrometheusService <../../amp>` / Client / delete_scraper

**************
delete_scraper
**************



.. py:method:: PrometheusService.Client.delete_scraper(**kwargs)

  

  The ``DeleteScraper`` operation deletes one scraper, and stops any metrics collection that the scraper performs.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/DeleteScraper>`_  


  **Request Syntax**
  ::

    response = client.delete_scraper(
        scraperId='string',
        clientToken='string'
    )
    
  :type scraperId: string
  :param scraperId: **[REQUIRED]** 

    The ID of the scraper to delete.

    

  
  :type clientToken: string
  :param clientToken: 

    (Optional) A unique, case-sensitive identifier that you can provide to ensure the idempotency of the request.

    This field is autopopulated if not provided.

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

    
    ::

      {
          'scraperId': 'string',
          'status': {
              'statusCode': 'CREATING'|'UPDATING'|'ACTIVE'|'DELETING'|'CREATION_FAILED'|'UPDATE_FAILED'|'DELETION_FAILED'
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 

      Represents the output of a ``DeleteScraper`` operation.

      
      

      - **scraperId** *(string) --* 

        The ID of the scraper to delete.

        
      

      - **status** *(dict) --* 

        The current status of the scraper.

        
        

        - **statusCode** *(string) --* 

          The current status of the scraper.

          
    
  
  **Exceptions**
  
  *   :py:class:`PrometheusService.Client.exceptions.ThrottlingException`

  
  *   :py:class:`PrometheusService.Client.exceptions.ConflictException`

  
  *   :py:class:`PrometheusService.Client.exceptions.ValidationException`

  
  *   :py:class:`PrometheusService.Client.exceptions.ResourceNotFoundException`

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

  
  *   :py:class:`PrometheusService.Client.exceptions.InternalServerException`

  