:doc:`Lambda <../../lambda>` / Client / delete_alias

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



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

  

  Deletes a Lambda function `alias <https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html>`__.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteAlias>`_  


  **Request Syntax**
  ::

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

    The name or ARN of the Lambda function.

     

    **Name formats**

     

    
    * **Function name** - ``MyFunction``.
     
    * **Function ARN** - ``arn:aws:lambda:us-west-2:123456789012:function:MyFunction``.
     
    * **Partial ARN** - ``123456789012:function:MyFunction``.
    

     

    The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

    

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

    The name of the alias.

    

  
  
  :returns: None
  **Exceptions**
  
  *   :py:class:`Lambda.Client.exceptions.InvalidParameterValueException`

  
  *   :py:class:`Lambda.Client.exceptions.ResourceConflictException`

  
  *   :py:class:`Lambda.Client.exceptions.ServiceException`

  
  *   :py:class:`Lambda.Client.exceptions.TooManyRequestsException`

  

  **Examples**

  The following example deletes an alias named BLUE from a function named my-function
  ::

    response = client.delete_alias(
        FunctionName='my-function',
        Name='BLUE',
    )
    
    print(response)

  
  Expected Output:
  ::

    {
        'ResponseMetadata': {
            '...': '...',
        },
    }

  