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

************
delete_alias
************



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

  

  **This API works with the following fleet types:** EC2, Anywhere, Container

   

  Deletes an alias. This operation removes all record of the alias. Game clients attempting to access a server process using the deleted alias receive an error. To delete an alias, specify the alias ID to be deleted.

   

  **Related actions**

   

  `All APIs by task <https://docs.aws.amazon.com/gamelift/latest/developerguide/reference-awssdk.html#reference-awssdk-resources-fleets>`__

  

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


  **Request Syntax**
  ::

    response = client.delete_alias(
        AliasId='string'
    )
    
  :type AliasId: string
  :param AliasId: **[REQUIRED]** 

    A unique identifier of the alias that you want to delete. You can use either the alias ID or ARN value.

    

  
  
  :returns: None
  **Exceptions**
  
  *   :py:class:`GameLift.Client.exceptions.UnauthorizedException`

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

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

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

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

  