This Python CLI tool allows you to delete all tables in a specified Amazon Timestream database.
- List all tables in a Timestream database
- Delete multiple tables (with user confirmation)
- Detailed logging
- Python 3.12+
- AWS credentials with Timestream permissions
-
Clone this repository:
git clone https://github.com/jbsilva/timestream-cleaner.git cd timestream-cleaner
-
Install the required dependencies:
uv sync
Or use the
Setup Python Environment
VS Code task.
To delete all tables in a Timestream database:
timestream-cleaner [OPTIONS] DATABASE_NAME
Options:
--region TEXT
: AWS region for Timestream database (default: eu-west-1)--help
: Show help message and exit
Example:
timestream-cleaner --region eu-west-2 my-database
Required IAM permissions:
timestream:ListTables
timestream:DeleteTable
To contribute to this project:
- Fork the repository
- Create a new branch for your feature
- Implement your changes
- Run tests
- Submit a pull request
This project is licensed under the MIT License - see the LICENSE file for details.
This tool can permanently delete data. Use with caution and always backup your data before running deletion operations.