:doc:`Backup <../../backup>` / Client / delete_backup_plan

******************
delete_backup_plan
******************



.. py:method:: Backup.Client.delete_backup_plan(**kwargs)

  

  Deletes a backup plan. A backup plan can only be deleted after all associated selections of resources have been deleted. Deleting a backup plan deletes the current version of a backup plan. Previous versions, if any, will still exist.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/DeleteBackupPlan>`_  


  **Request Syntax**
  ::

    response = client.delete_backup_plan(
        BackupPlanId='string'
    )
    
  :type BackupPlanId: string
  :param BackupPlanId: **[REQUIRED]** 

    Uniquely identifies a backup plan.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'BackupPlanId': 'string',
          'BackupPlanArn': 'string',
          'DeletionDate': datetime(2015, 1, 1),
          'VersionId': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **BackupPlanId** *(string) --* 

        Uniquely identifies a backup plan.

        
      

      - **BackupPlanArn** *(string) --* 

        An Amazon Resource Name (ARN) that uniquely identifies a backup plan; for example, ``arn:aws:backup:us-east-1:123456789012:plan:8F81F553-3A74-4A3F-B93D-B3360DC80C50``.

        
      

      - **DeletionDate** *(datetime) --* 

        The date and time a backup plan is deleted, in Unix format and Coordinated Universal Time (UTC). The value of ``DeletionDate`` is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.

        
      

      - **VersionId** *(string) --* 

        Unique, randomly generated, Unicode, UTF-8 encoded strings that are at most 1,024 bytes long. Version IDs cannot be edited.

        
  
  **Exceptions**
  
  *   :py:class:`Backup.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`Backup.Client.exceptions.InvalidParameterValueException`

  
  *   :py:class:`Backup.Client.exceptions.MissingParameterValueException`

  
  *   :py:class:`Backup.Client.exceptions.ServiceUnavailableException`

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

  