Commands
remove-index
Remove only the search index for a project, keeping the project definition.Syntax
Arguments
Name of the project whose index should be removed.
Behavior
- Removes file indexes (both legacy and block-based)
- Marks project as not indexed
- Keeps project definition and metadata
- Preserves summaries
Example
Use Cases
- Corrupted index needs rebuilding
- Switching from legacy to block-based indexing
- Clearing stale index data
- Freeing up disk space temporarily
remove-project
Completely remove a project including its index, summaries, and metadata.Syntax
Arguments
Name of the project to remove completely.
Behavior
- Removes project definition
- Removes all indexes
- Removes all summaries
- Removes all project metadata
- If current project, switches to another project or unsets
Example
Current Project Handling
If removing the current project:Use Cases
- Removing deleted projects from adist
- Cleaning up old projects
- Starting fresh with a project
- Freeing disk space
remove-project-id
Remove a project by its ID rather than name. Useful for troubleshooting corrupted projects.Syntax
Arguments
Unique ID of the project to remove. Get IDs from
adist list --debug or adist paths.Behavior
- Same as
remove-projectbut uses ID instead of name - Useful when project name is corrupted or inaccessible
- Shows project name if available
- Removes all project data
Example
Use Cases
- Corrupted project with invalid name
- Duplicate projects with same name
- Troubleshooting configuration issues
- Advanced cleanup operations
Comparison
| Command | Removes Index | Removes Project | Removes Summaries | Identifier |
|---|---|---|---|---|
remove-index | β | β | β | Name |
remove-project | β | β | β | Name |
remove-project-id | β | β | β | ID |
Safety
What Gets Deleted
- Project metadata in adist config
- Search indexes
- AI-generated summaries
What Stays Safe
- Actual project files and source code
- Git repositories
- Any files in the project directory
Recommendations
Use remove-index when:
- Index seems corrupted
- Switching indexing methods
- Want to reindex from scratch
Use remove-project when:
- Project directory was deleted
- No longer need to search this project
- Clean up old projects
Use remove-project-id when:
- Normal removal fails
- Project data is corrupted
- Dealing with edge cases
Related Commands
- adist list - View all projects and IDs
- adist paths - Get current project ID
- adist init - Re-initialize a removed project
- adist reindex - Rebuild index after remove-index