Denji

denji clear

Remove all icons from your project

Remove all icons from the project.

Usage

denji clear [options]

Options

--yes

Type: boolean
Alias: -y

Skip confirmation prompt.

denji clear --yes

Examples

Clear with confirmation:

denji clear

Output:

? Are you sure you want to remove all icons? (y/N)

Clear without confirmation:

denji clear --yes

How It Works

  1. Shows confirmation prompt (unless --yes is used)
  2. Removes all icons from icons file
  3. Resets to empty template
  4. Runs postClear hooks (if configured)

This action cannot be undone. Make sure to commit your changes before clearing.

After Clearing

The icons file is reset to:

export const Icons = {};

You can start fresh by adding new icons:

denji add lucide:check

On this page