Sqlite Db Truncate

🌐Community
by letta-ai · vlatest · Repository

Quickly empties the contents of a SQLite database table, resetting it to an empty state.

Install on your platform

We auto-selected Claude Code based on this skill’s supported platforms.

1

Run in terminal (recommended)

terminal
claude mcp add sqlite-db-truncate npx -- -y @trustedskills/sqlite-db-truncate
2

Or manually add to ~/.claude/settings.json

~/.claude/settings.json
{
  "mcpServers": {
    "sqlite-db-truncate": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/sqlite-db-truncate"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

The sqlite-db-truncate skill allows AI agents to efficiently clear all data from specific tables within an SQLite database. It executes a direct truncation command, resetting row counts and reclaiming storage space without the overhead of deleting rows individually.

When to use it

  • Resetting test environments: Quickly wipe a database table between different test runs or user sessions to ensure clean state isolation.
  • Clearing logs or caches: Remove accumulated temporary data, such as session logs or cached entries, to maintain system performance.
  • Preparation for fresh imports: Empty existing tables before loading new datasets to prevent duplicate key errors or data corruption.
  • Debugging data issues: Instantly clear a table to verify if specific records are causing application failures.

Key capabilities

  • Executes TRUNCATE TABLE commands against SQLite databases.
  • Targets specific tables identified by the user or system context.
  • Provides immediate feedback on successful data removal operations.

Example prompts

  • "Truncate the user_sessions table in my local development database."
  • "Clear all records from the error_logs table to start fresh for today's monitoring cycle."
  • "Run a truncate command on the temp_cache table before I import the new dataset."

Tips & gotchas

Ensure you have a backup of critical data before truncating, as this operation is irreversible and cannot be undone with standard transaction rollbacks in many SQLite configurations. Always verify the target table name to avoid accidentally clearing production data intended for other applications.

Tags

🛡️

TrustedSkills Verification

Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.

Security Audits

Gen Agent Trust HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
letta-ai
Installs
30

🌐 Community

Passed automated security scans.