Skip to main content
OpenGround provides commands to manage your indexed documentation libraries, including listing available libraries, viewing statistics, and removing libraries you no longer need.

List Libraries

View all libraries stored in your LanceDB database:
Alias: openground ls

Output Format

Results are displayed in a formatted table:
This shows libraries that have been embedded into LanceDB. To see raw extracted data, use openground list-raw-libraries.

List Raw Libraries

View libraries in the raw data directory (extracted but possibly not yet embedded):

Output Format

  • list-libraries: Shows libraries in LanceDB (embedded and searchable)
  • list-raw-libraries: Shows libraries in raw_data directory (extracted JSON files)
Normally these match, but they can differ if:
  • Extraction completed but embedding was interrupted
  • You manually deleted the database
  • Embedding is in progress

Programmatic Library Listing

List libraries from Python code:

Remove Libraries

Delete a library version from LanceDB:
Alias: openground rm

Remove Options

string
required
Name of the library to remove
string
required
Version of the library to remove
boolean
Skip confirmation prompts

Remove Examples

Confirmation Dialog

By default, OpenGround shows library details and asks for confirmation:
Removing a library is permanent and cannot be undone. You’ll need to re-extract and re-embed the library to restore it.

Library Statistics

Get detailed statistics for a specific library version:

Stats Output

Global Statistics

View overall OpenGround statistics:

Stats Output

Tool calls are tracked when using OpenGround through MCP (Model Context Protocol) integration with AI editors like Claude Code, Cursor, or OpenCode. Each time the AI uses an OpenGround tool, it’s counted here.

Reset Statistics

Clear tool call statistics:
This only resets tool call counts, not library data. Your libraries and embeddings remain intact.

Delete All Data

OpenGround provides nuke commands to delete data:

Delete Everything

Delete both raw data and embeddings:

Delete Only Raw Data

Delete extracted JSON files but keep embeddings:

Delete Only Embeddings

Delete LanceDB but keep raw extracted files:

Nuke Examples

Nuke Confirmation

The command shows a summary before deleting:
PERMANENT DELETION: nuke commands permanently delete data and cannot be undone. Make sure you have backups or can re-extract your libraries.
Use nuke commands when:
  • Starting fresh with a new configuration
  • Clearing disk space
  • Switching embedding models (requires re-embedding)
  • Troubleshooting database corruption
  • Testing or development workflows
Do not use if you want to keep your libraries and just update them (use openground update instead).

Programmatic Deletion

Delete libraries from Python:

Storage Locations

Understanding where data is stored:
You can customize storage locations using the config file. See Configuration for details.

Best Practices

Regular Cleanup

Periodically remove old versions you no longer need:

Version Management

Keep only versions you actively use:

Monitor Disk Usage

Check storage usage regularly:

Backup Before Nuke

Back up important libraries before mass deletion:

Next Steps

Querying

Learn how to search your libraries

Updating

Keep your libraries up-to-date