:doc:`NetworkManager <../../networkmanager>` / Client / delete_site

***********
delete_site
***********



.. py:method:: NetworkManager.Client.delete_site(**kwargs)

  

  Deletes an existing site. The site cannot be associated with any device or link.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/DeleteSite>`_  


  **Request Syntax**
  ::

    response = client.delete_site(
        GlobalNetworkId='string',
        SiteId='string'
    )
    
  :type GlobalNetworkId: string
  :param GlobalNetworkId: **[REQUIRED]** 

    The ID of the global network.

    

  
  :type SiteId: string
  :param SiteId: **[REQUIRED]** 

    The ID of the site.

    

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

    
    ::

      {
          'Site': {
              'SiteId': 'string',
              'SiteArn': 'string',
              'GlobalNetworkId': 'string',
              'Description': 'string',
              'Location': {
                  'Address': 'string',
                  'Latitude': 'string',
                  'Longitude': 'string'
              },
              'CreatedAt': datetime(2015, 1, 1),
              'State': 'PENDING'|'AVAILABLE'|'DELETING'|'UPDATING',
              'Tags': [
                  {
                      'Key': 'string',
                      'Value': 'string'
                  },
              ]
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Site** *(dict) --* 

        Information about the site.

        
        

        - **SiteId** *(string) --* 

          The ID of the site.

          
        

        - **SiteArn** *(string) --* 

          The Amazon Resource Name (ARN) of the site.

          
        

        - **GlobalNetworkId** *(string) --* 

          The ID of the global network.

          
        

        - **Description** *(string) --* 

          The description of the site.

          
        

        - **Location** *(dict) --* 

          The location of the site.

          
          

          - **Address** *(string) --* 

            The physical address.

            
          

          - **Latitude** *(string) --* 

            The latitude.

            
          

          - **Longitude** *(string) --* 

            The longitude.

            
      
        

        - **CreatedAt** *(datetime) --* 

          The date and time that the site was created.

          
        

        - **State** *(string) --* 

          The state of the site.

          
        

        - **Tags** *(list) --* 

          The tags for the site.

          
          

          - *(dict) --* 

            Describes a tag.

            
            

            - **Key** *(string) --* 

              The tag key.

               

              Constraints: Maximum length of 128 characters.

              
            

            - **Value** *(string) --* 

              The tag value.

               

              Constraints: Maximum length of 256 characters.

              
        
      
    
  
  **Exceptions**
  
  *   :py:class:`NetworkManager.Client.exceptions.ValidationException`

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

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

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

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

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

  