hatch-clean - Man Page

hatch clean – Remove build artifacts

Synopsis

hatch clean [Options] [LOCATION]

Options

-t,  --target TEXT

The target with which to remove artifacts, overriding project defaults. This may be selected multiple times e.g. -t sdist -t wheel

--hooks-only

Whether or not to only remove artifacts from build hooks [env var: HATCH_BUILD_HOOKS_ONLY]

--no-hooks

Whether or not to ignore artifacts from build hooks [env var: HATCH_BUILD_NO_HOOKS]

--ext

Whether or not to only remove artifacts from build hooks for distributing binary Python packages, such as compiled extensions. Equivalent to --hooks-only -t wheel

-h,  --help

Show a help message and exit

Environment

HATCH_BUILD_HOOKS_ONLY

Whether or not to only remove artifacts from build hooks [option: --hooks-only]

HATCH_BUILD_NO_HOOKS

Whether or not to ignore artifacts from build hooks [option: --no-hooks]

See Also

hatch-build(1), hatch-config(1), hatch-dep(1), hatch-env(1), hatch-fmt(1), hatch-new(1), hatch-project(1), hatch-publish(1), hatch-python(1), hatch-run(1), hatch-shell(1), hatch-status(1), hatch-version(1)

hatch(1)

Referenced By

hatch(1), hatch-build(1), hatch-config(1), hatch-dep(1), hatch-env(1), hatch-fmt(1), hatch-new(1), hatch-project(1), hatch-publish(1), hatch-python(1), hatch-run(1), hatch-shell(1), hatch-status(1), hatch-version(1).

December 2023