Skip to main content
Delete data from raw_data and/or the LanceDB vector database. Use with caution.
These commands permanently delete data and cannot be undone. Make sure you have backups or can re-extract the documentation.

Commands

all

Delete all files in both raw_data and LanceDB directories.

Options

boolean
default:"false"
Skip confirmation prompt.Aliases: -y

Example

Output:

raw_data

Delete all files in the raw_data directory.

Options

boolean
default:"false"
Skip confirmation prompt.Aliases: -y

Example

Output:

embeddings

Delete all files in the LanceDB directory.

Options

boolean
default:"false"
Skip confirmation prompt.Aliases: -y

Example

Output:

Use Cases

Complete Reset

Delete everything and start fresh:

Free Disk Space (Keep Embeddings)

Delete raw data but keep embeddings:
Raw data is only needed for re-embedding. Once embedded, you can safely delete it.

Re-embed Everything

Delete embeddings but keep raw data:

Before Changing Embedding Model

When switching embedding models, you must re-embed:

Safety Features

Confirmation Prompts

All commands show:
  • Number of libraries to be deleted
  • Directory paths
  • Tips for checking what will be deleted
You must explicitly confirm unless using --yes.

Count Before Delete

Before deleting, verify what exists:

No Data = No Action

If directories are empty, commands report and exit:
Output:

What Gets Deleted

nuke all

  • Raw data directory: ~/.openground/raw_data/
  • LanceDB directory: ~/.openground/lancedb/
  • Statistics: Tool call statistics (reset to zero)
  • Query caches: Internal query caches

nuke raw_data

  • Raw data directory: ~/.openground/raw_data/
  • All extracted JSON files

nuke embeddings

  • LanceDB directory: ~/.openground/lancedb/
  • All vector embeddings
  • Statistics: Tool call statistics (reset to zero)
  • Query caches: Internal query caches

What Doesn’t Get Deleted

  • Configuration file: ~/.openground/config.json (use openground config reset)
  • Sources file: ~/.openground/sources.json
  • MCP configurations: Agent integration configs

Recovery

After nuking, you can:
  1. Re-add libraries:
  2. Re-embed from raw data (if available):
  3. Restore from backup (if created):