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

************
delete_build
************



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

  

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

   

  Deletes a build. This operation permanently deletes the build resource and any uploaded build files. Deleting a build does not affect the status of any active fleets using the build, but you can no longer create new fleets with the deleted build.

   

  To delete a build, specify the build ID.

   

  **Learn more**

   

  `Upload a Custom Server Build <https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-build-intro.html>`__

   

  `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/DeleteBuild>`_  


  **Request Syntax**
  ::

    response = client.delete_build(
        BuildId='string'
    )
    
  :type BuildId: string
  :param BuildId: **[REQUIRED]** 

    A unique identifier for the build to delete. You can use either the build ID or ARN value.

    

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

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

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

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

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

  