Skip to main content
The openground remove command deletes all documents for a specific library version from the local vector database.

Usage

Arguments

string
required
Name of the library to remove

Options

string
required
Version of the library to remove.Aliases: -vNote: This option is required. You must specify which version to remove.
boolean
default:"false"
Skip confirmation prompt.Aliases: -y

Behavior

Confirmation Prompt

Before deletion, the command shows:
  • Library name and version
  • Number of chunks to be deleted
  • Number of unique pages
  • Sample page titles (up to 3)
You must confirm unless --yes is used.

Raw Files

After removing from the database, the command offers to delete raw files from the raw data directory:
  • Location: ~/.openground/raw_data/{library}/{version}/
  • You can choose to keep or delete these files
This operation cannot be undone. Make sure you have backups or can re-extract the documentation.

Examples

Remove with Confirmation

Output:

Remove Without Confirmation

Using Shorthand Alias

Error Handling

Library Not Found

Output:

Workflow

  1. Check what exists:
  2. Remove a library:
  3. Verify removal:

Removing Multiple Versions

To remove multiple versions, run the command for each: