Documentation Index
Fetch the complete documentation index at: https://ocx.kdco.dev/docs/llms.txt
Use this file to discover all available pages before exploring further.
Usage
Description
Remove installed components from your project. OCX deletes the component files and removes the entry from the receipt file (.ocx/receipt.jsonc).
Arguments
| Argument | Required | Description |
|---|---|---|
components... | Yes | Component references to remove. Canonical IDs are authoritative (e.g., https://ocx.kdco.dev::kdco/researcher@1.0.0); shorthand alias/component refs (e.g., kdco/researcher) are accepted as a convenience. |
Flags
| Flag | Shorthand | Default | Description |
|---|---|---|---|
--dry-run | false | Show what would be removed without making changes | |
--force | -f | false | Force removal even if files have been modified |
--cwd <path> | Current directory | Working directory | |
--quiet | -q | false | Suppress output |
--verbose | -v | false | Verbose output |
--json | false | Output as JSON |
Examples
Remove a Single Component (Canonical ID)
Remove a Single Component (Shorthand Convenience)
Remove Multiple Components
Preview What Would Be Removed
Force Remove Modified Files
--force to override this safety check.
See Also
- ocx add — Add components to your project.
- ocx update — Update components instead of removing.
- CLI Reference — All commands.