Skip to content

dgadd remove

Remove installed Diffgazer registry items.

Usage

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

Before publication: Diffgazer packages are not yet published to npm, so there is no dgadd bin until you install one. Follow the canonical Copy-first mode procedure to build and pack @diffgazer/add, then install that packed tarball in the target app. The target-app install is what puts dgadd on pnpm exec.

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