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(1)

Referenced By

hatch(1).

March 2022