Amazon Timestream Database Table Cleanup Tool
Project description
Amazon Timestream Database Table Cleanup Tool
This Python CLI tool allows you to delete all tables in a specified Amazon Timestream database.
Features
- List all tables in a Timestream database
- Delete multiple tables (with user confirmation)
- Detailed logging
Requirements
- Python 3.12+
- AWS credentials with Timestream permissions
Installation
-
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.
Usage
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
Permissions
Required IAM permissions:
timestream:ListTables
timestream:DeleteTable
Development
To contribute to this project:
- Fork the repository
- Create a new branch for your feature
- Implement your changes
- Run tests
- Submit a pull request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Disclaimer
This tool can permanently delete data. Use with caution and always backup your data before running deletion operations.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file timestream_cleaner-0.1.0.tar.gz
.
File metadata
- Download URL: timestream_cleaner-0.1.0.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ffd2210b9c1beacec80db93e1b092ac7aba692007c4a664a6ef966221d38b0b8 |
|
MD5 | 5461f630ec1c88430103afee1023b992 |
|
BLAKE2b-256 | 5be34bca21e752420ff84975385d4cca84c0b818b4b689262f621ffd6c37d59f |
File details
Details for the file timestream_cleaner-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: timestream_cleaner-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b626a1b33733045fa5b796bf008fb854db3308908e744e9c301ad2d275ce82d1 |
|
MD5 | 7b9119a7eba27ff79a9327b6e9c1eb0a |
|
BLAKE2b-256 | aa5dac034af7754185d617dbae55222a7a0767eef2931b859d37f2b31a789c6d |