| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -43,6 +43,11 @@ def cleanup_old_instances(spanner_client): | |||
| 43 | 43 | create_time = int(instance.labels["created"]) | |
| 44 | 44 | if create_time > cutoff: | |
| 45 | 45 | continue | |
| 46 | + | ||
| 47 | + for backup_pb in instance.list_backups(): | ||
| 48 | + backup = Backup.from_pb(backup_pb, instance) | ||
| 49 | + backup.delete() | ||
| 50 | + | ||
| 46 | 51 | instance.delete() | |
| 47 | 52 | ||
| 48 | 53 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments