:doc:`GameLift <../../gamelift>` / Client / delete_location

***************
delete_location
***************



.. py:method:: GameLift.Client.delete_location(**kwargs)

  

  **This API works with the following fleet types:** Anywhere

   

  Deletes a custom location.

   

  Before deleting a custom location, review any fleets currently using the custom location and deregister the location if it is in use. For more information, see `DeregisterCompute <https://docs.aws.amazon.com/gamelift/latest/apireference/API_DeregisterCompute.html>`__.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DeleteLocation>`_  


  **Request Syntax**
  ::

    response = client.delete_location(
        LocationName='string'
    )
    
  :type LocationName: string
  :param LocationName: **[REQUIRED]** 

    The location name of the custom location to be deleted.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`GameLift.Client.exceptions.UnauthorizedException`

  
  *   :py:class:`GameLift.Client.exceptions.InvalidRequestException`

  
  *   :py:class:`GameLift.Client.exceptions.NotFoundException`

  
  *   :py:class:`GameLift.Client.exceptions.InternalServiceException`

  