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

***********
delete_view
***********



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

  

  Deletes the specified view.

   

  If the specified view is the default view for its Amazon Web Services Region, then all  Search operations in that Region must explicitly specify the view to use until you configure a new default by calling the  AssociateDefaultView operation.

  

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


  **Request Syntax**
  ::

    response = client.delete_view(
        ViewArn='string'
    )
    
  :type ViewArn: string
  :param ViewArn: **[REQUIRED]** 

    The `Amazon resource name (ARN) <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html>`__ of the view that you want to delete.

    

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

    
    ::

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

    

    - *(dict) --* 
      

      - **ViewArn** *(string) --* 

        The `Amazon resource name (ARN) <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html>`__ of the view that you successfully deleted.

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

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

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

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

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

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

  