Uninstall

Uninstall formulas in a codebase.

Usage

Use the uninstall command to remove a formula and it's files from a codebase.

Terminal
g0 uninstall <formula-name>

This will remove all files belonging to the specified formula (dirs containing index.yml and files containing yaml frontmatter with matching formula name).

Bundled formulas (under the formulas and dev-formulas field in the specified formula's formula.yml file) will NOT be removed (unless --recursive option is included).

The uninstall command will also remove the formula from the project specific .groundzero/formula.yml file, as well as the formula formula.yml files under each .groundzero/formulas/<formula-name>/ directories.

.groundzero/formula.yml
name: my-nextjs-project
version: 0.1.0
formulas:
  - name: scalable-nextjs
    version: ^0.1.2

Advanced Usage

Recursive uninstalls

By default, the uninstall command will not remove bundled formulas recursively. You can use the --recursive option to uninstall all dangling (not bundled by any other formulas) formulas.

Terminal
g0 uninstall <formula-name> --recursive