Skip to main content
Version: 2.3.4

Delete Components

Delete a Component

  • To delete a component simply run:
rnhc delete -c <component-name>
  • This will delete the component with the given name <component-name> under the src/components/ folder.

  • If the component does not exist, rnhc will prompt the following:

src/components/<component-name>/ does not exist

Delete multiple Components

  • To delete multiple components run:
rnhc delete -c <component-name-1> <component-name-2> ...
  • This will delete only the existed components with the given inputs that resides under the src/components/ folder.

Delete a Components in a Specific Folder

  • To delete one or multiple components that resides in a specific path under the src/components/ folder, you can run:
rnhc delete -c <component-name-1> <component-name-2> ... -f <folder-path>
  • This will delete only the existed components with the given inputs that resides under the src/components/<folder-path>/ folder.