Skip to content

HAMUR_E0186: hamur cleanup refuses to remove a folder

hamur cleanup refuses to remove a folder. Error HAMUR_E0186 belongs to hamur, config, environment and command line (0001 – 0999).

Message

text
HAMUR_E0186 Refusing to remove <dir>: it is the root directory
text
HAMUR_E0186 Refusing to remove <dir>: it is outside <rootDir>
text
HAMUR_E0186 Refusing to remove <shown>: it holds <shown>
text
HAMUR_E0186 Refusing to remove <shown>: hamur dev runs there (pid <pid>); run hamur dev stop

Cause

hamur cleanup refuses to remove a folder that is the root, is outside the root, holds a file the app keeps, or is the build directory of a hamur dev that runs.

Fix

Do not set a folder of the config (output, build, cache) to such a path; stop the dev server with hamur dev stop first.