:doc:`ResourceExplorer <../../resource-explorer-2>` / Client / delete_resource_explorer_setup

******************************
delete_resource_explorer_setup
******************************



.. py:method:: ResourceExplorer.Client.delete_resource_explorer_setup(**kwargs)

  

  Deletes a Resource Explorer setup configuration. This operation removes indexes and views from the specified Regions or all Regions where Resource Explorer is configured.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/resource-explorer-2-2022-07-28/DeleteResourceExplorerSetup>`_  


  **Request Syntax**
  ::

    response = client.delete_resource_explorer_setup(
        RegionList=[
            'string',
        ],
        DeleteInAllRegions=True|False
    )
    
  :type RegionList: list
  :param RegionList: 

    A list of Amazon Web Services Regions from which to delete the Resource Explorer configuration. If not specified, the operation uses the ``DeleteInAllRegions`` parameter to determine scope.

    

  
    - *(string) --* 

    

  :type DeleteInAllRegions: boolean
  :param DeleteInAllRegions: 

    Specifies whether to delete Resource Explorer configuration from all Regions where it is currently enabled. If this parameter is set to ``true``, a value for ``RegionList`` must not be provided. Otherwise, the operation fails with a ``ValidationException`` error.

    

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

    
    ::

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

    

    - *(dict) --* 
      

      - **TaskId** *(string) --* 

        The unique identifier for the deletion task. Use this ID with ``GetResourceExplorerSetup`` to monitor the progress of the deletion operation.

        
  
  **Exceptions**
  
  *   :py:class:`ResourceExplorer.Client.exceptions.InternalServerException`

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

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

  
  *   :py:class:`ResourceExplorer.Client.exceptions.ThrottlingException`

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

  