Deleting and renaming a category
You can delete a category by just calling hlg
with the --delete-category
option.
A delete operation must always be followed by the name of the category you wish to delete.
You cannot delete a category set as a default or a home-linked category.[1] hlg
will disobey that command and remind you of that danger.
This same rule applies to renaming:
-
To rename a category, you pass in the name of the category to be renamed along with the suggested new name for that category.
-
You call
hlg
with the--rename-category
option; -
For example, to rename the “electronics” category to “gadgets”, we do it like this:
hlg --rename electronics gadgets
-
You cannot rename a default category to something else.
-
Remember that instead of the long option, you can use the
-r
short option.
To delete a category, you pass in the --delete-category
or -d
option like this:
hlg --delete-category electronics
Just remember that hlg
will not delete or rename categories it is referencing. Hence, the default and the home-linked categories cannot be deleted or renamed unless you make some changes in the configuration file and assign other categories the default or home-linked category status.
These categories are what we call the safe categories, so they cannot be modified as long as they are in use.