:doc:`Personalize <../../personalize>` / Client / delete_campaign

***************
delete_campaign
***************



.. py:method:: Personalize.Client.delete_campaign(**kwargs)

  

  Removes a campaign by deleting the solution deployment. The solution that the campaign is based on is not deleted and can be redeployed when needed. A deleted campaign can no longer be specified in a `GetRecommendations <https://docs.aws.amazon.com/personalize/latest/dg/API_RS_GetRecommendations.html>`__ request. For information on creating campaigns, see `CreateCampaign <https://docs.aws.amazon.com/personalize/latest/dg/API_CreateCampaign.html>`__.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/DeleteCampaign>`_  


  **Request Syntax**
  ::

    response = client.delete_campaign(
        campaignArn='string'
    )
    
  :type campaignArn: string
  :param campaignArn: **[REQUIRED]** 

    The Amazon Resource Name (ARN) of the campaign to delete.

    

  
  
  :returns: None
  **Exceptions**
  
  *   :py:class:`Personalize.Client.exceptions.InvalidInputException`

  
  *   :py:class:`Personalize.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`Personalize.Client.exceptions.ResourceInUseException`

  