Either
stack clean [PACKAGE] [--[no-]omit-this]
or
stack clean --full
stack clean deletes build artefacts for one or more project packages.
By default:
-
all project packages are cleaned. Pass one or more project package names to specify individual project packages; and
-
the
distdirectory and all of its subdirectories in the Stack work directory for each relevant project package are deleted. Pass the flag--omit-thisto omit, from cleaning, thedistwork directory (seestack path --dist-dir) and its subdirectories currently in use.
stack clean --full deletes the Stack work directories of the project and its
project packages.