Skip to content

Collection Management ​

Manage the vector database collections that store code embeddings for AI-powered semantic search.

bash
wdg collections <list|delete|validate|clean> [options]

Collection Naming ​

Collections are isolated and named by what they index:

CollectionContents
wdg_frameworkWikit framework (blocks, core classes, theme utilities, faceted search)
platformPlatform code (MCP server, CLI, indexer, Docker configs)
project_<name>Project-specific code, one per project

Collections are created automatically when you index. See Code Indexing for how content gets into them.

List Collections ​

bash
wdg collections list

Lists every collection currently in the vector database. Running wdg collections with no subcommand also lists.

Delete a Collection ​

bash
wdg collections delete <collection-name>

Deletes a single collection by name. You are prompted for confirmation (y/N) before anything is removed.

Example:

bash
wdg collections delete project_old_site
Deleting collection: project_old_site
Are you sure? This cannot be undone. (y/N)

To recreate a deleted project collection, re-index the project:

bash
wdg <project> index

Validate Collections ​

bash
wdg collections validate

Checks the collections against the projects and repositories on disk and reports inconsistencies (for example, collections that no longer have a corresponding project).

Clean Orphaned Collections ​

bash
wdg collections clean

Removes collections that no longer correspond to anything on disk. By default this runs interactively and prompts before removing. In a non-interactive context, pass --confirm to proceed without prompting:

bash
wdg collections clean --confirm

See Also: