Skip to main content

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

  1. Clone this repository:

    git clone https://github.com/jbsilva/timestream-cleaner.git
    cd timestream-cleaner
    
  2. 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:

  1. Fork the repository
  2. Create a new branch for your feature
  3. Implement your changes
  4. Run tests
  5. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

timestream_cleaner-0.1.0.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

timestream_cleaner-0.1.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file timestream_cleaner-0.1.0.tar.gz.

File metadata

File hashes

Hashes for timestream_cleaner-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ffd2210b9c1beacec80db93e1b092ac7aba692007c4a664a6ef966221d38b0b8
MD5 5461f630ec1c88430103afee1023b992
BLAKE2b-256 5be34bca21e752420ff84975385d4cca84c0b818b4b689262f621ffd6c37d59f

See more details on using hashes here.

File details

Details for the file timestream_cleaner-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for timestream_cleaner-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b626a1b33733045fa5b796bf008fb854db3308908e744e9c301ad2d275ce82d1
MD5 7b9119a7eba27ff79a9327b6e9c1eb0a
BLAKE2b-256 aa5dac034af7754185d617dbae55222a7a0767eef2931b859d37f2b31a789c6d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page