:doc:`APIGateway <../../apigateway>` / Client / delete_deployment

*****************
delete_deployment
*****************



.. py:method:: APIGateway.Client.delete_deployment(**kwargs)

  

  Deletes a Deployment resource. Deleting a deployment will only succeed if there are no Stage resources associated with it.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/apigateway-2015-07-09/DeleteDeployment>`_  


  **Request Syntax**
  ::

    response = client.delete_deployment(
        restApiId='string',
        deploymentId='string'
    )
    
  :type restApiId: string
  :param restApiId: **[REQUIRED]** 

    The string identifier of the associated RestApi.

    

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

    The identifier of the Deployment resource to delete.

    

  
  
  :returns: None
  **Exceptions**
  
  *   :py:class:`APIGateway.Client.exceptions.BadRequestException`

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

  
  *   :py:class:`APIGateway.Client.exceptions.LimitExceededException`

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

  
  *   :py:class:`APIGateway.Client.exceptions.UnauthorizedException`

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

  