Delete a table, ignoring ResourceNotFoundException.
(client, table_name: str)
| 84 | print(f" {title}") |
| 85 | print(f"{'='*60}\n") |
| 86 | def delete_table_safe(client, table_name: str) -> None: |
| 87 | """Delete a table, ignoring ResourceNotFoundException.""" |
| 88 | try: |
| 89 | client.delete_table(TableName=table_name) |
| 90 | print(f" ✓ Deleted {table_name}") |
| 91 | except client.exceptions.ResourceNotFoundException: |
| 92 | pass |
| 93 | # --------------------------------------------------------------------------- |
| 94 | # Step 1: Create tables |
| 95 | # --------------------------------------------------------------------------- |
no test coverage detected