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 EnvironmentVS Code task.
To delete all tables in a Timestream database:
timestream-cleaner [OPTIONS] DATABASE_NAMEOptions:
--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-databaseRequired IAM permissions:
timestream:ListTablestimestream: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.