Skip to content

dgadd remove

Remove installed Diffgazer registry items.

Usage

bash
pnpm exec dgadd remove <item> [item...]
Info:

npm packages: @diffgazer/add is on npm. pnpm add -D @diffgazer/add puts dgadd on pnpm exec, and npx @diffgazer/add <command> runs it without the install. Components also install without dgadd from the hosted registry: npx shadcn add https://r.b4r7.dev/r/ui/<item>.json.

Examples

bash
pnpm exec dgadd remove ui/button
pnpm exec dgadd remove ui/tabs ui/menu keys/navigation
pnpm exec dgadd remove ui/tabs --dry-run

What it does

  1. Validates item names against the bundled registry.
  2. Resolves installed files for those items.
  3. Skips files still used by other installed items.
  4. Removes selected files and cleans empty directories.
  5. Updates the local diffgazer.json manifest.
  6. Prints potentially orphaned npm dependencies.

Options

FlagDescriptionDefault
--cwd <path>Working directory.
--yesSkip confirmation promptfalse
--dry-runPreview changes without removing filesfalse
--forceRemove files even when ownership metadata is missing or content changedfalse