• AUDIT
  • PURGE
  • CONFIRM
  • CLEAN

How to cleanup unused databases with your AI

Connect Turso to your AI client to manage your edge database footprint. You can audit your current setup and prune old instances using plain English.

Ask AI about this page

Short answer

How do I find and delete unused Turso databases?

Tell your AI to list your databases and identify which ones are no longer needed. Once you confirm the targets, your agent can delete them directly. You'll get a clean, organized database list.

The results of a cleanup

Where your changes land.

Managing your edge footprint happens through direct commands.

AUDIT

Full database inventory

The AI pulls a complete list of your current Turso instances. You get a clear view of everything currently running in your account.

PURGE

Removed zombie instances

Old or abandoned databases are wiped out. This clears up your workspace and prevents confusion with stale data.

CONFIRM

Human-led verification

The AI won't delete anything without your go-ahead. You stay in control of which specific instances get removed.

CLEAN

Organized edge footprint

You end up with only the active, necessary databases. This keeps your Turso account tidy and easy to manage.

The workflow

What your AI does when the request arrives.

Your agent handles the heavy lifting of interacting with the Turso API.

  1. Inventory check

    Your agent scans your Turso account to see every database you have active.

    list_databases
  2. Identify targets

    The AI analyzes the list to find databases that look unused or match your description of 'zombies'.

    list_databases
  3. Execute removal

    After you give the command, the agent sends the instruction to wipe the specific database.

    delete_database
  4. Final verification

    The agent checks the list one last time to ensure the target is gone.

    list_databases

Try it

Copy these to start.

Use these prompts to trigger the cleanup process.

Starting points

These are basic ways to start. Swap out the database names for your actual ones.

Turso Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_auXgf153NbgeNT8u85XWHaGvlwZ8G20GEzWf2zUa/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat — Turso capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "turso-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_auXgf153NbgeNT8u85XWHaGvlwZ8G20GEzWf2zUa/mcp"
    }
  }
}
Copy into chat04
  • List all my Turso databases so I can see what's running.

  • Find any databases in my Turso account that I haven't used in a while.

  • Delete the database named 'test-db-old' from my Turso account.

  • Show me my databases and then delete the one called 'staging-temp'.

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect Turso once, then ask.

Just link your account once. Your credentials stay encrypted, and you can immediately start managing your databases through your preferred AI client.

Connect Turso to your AI

FAQ

How this task behaves.

  • 01

    Will the AI delete my databases automatically?

    No. The AI only performs deletions when you explicitly tell it to delete a specific database.

  • 02

    Can the AI create new databases for me?

    No. This specific setup only allows for listing and deleting existing databases.

  • 03

    Can I recover a database after the AI deletes it?

    No. Once the delete command is executed, the database is permanently removed.

  • 04

    Does the AI see my database data?

    No. The AI only interacts with the database instances themselves, not the data stored inside them.

  • 05

    How does the AI know which database is 'unused'?

    The AI uses the information provided by the list tool. You should provide context, like names or patterns, to help it identify targets.

  • More questions about Turso? See everything the Turso Connector can do

Connect Turso to Claude, Cursor, ChatGPT & more