Skip to content

Instantly share code, notes, and snippets.

@missioncloud
missioncloud / delete_recovery_points.py
Created April 20, 2019 20:08
Simple Python3 script to remove recovery points from an AWS Backup Vault. Used as an interim solution until a `force_delete` option becomes available.
import boto3
from time import sleep
from sys import argv
def get_recovery_points(vault_name: str) -> list:
pagination = True
restore_points = []
b = boto3.client('backup')