Rush StackShopBlogEvents
Skip to main content

Home > @rushstack/heft > IHeftLifecycleHooks > clean

IHeftLifecycleHooks.clean property

The clean hook is called at the beginning of Heft execution. It can be used to clean up any files or folders that may be produced by the plugin. To use it, call clean.tapPromise(<pluginName>, <callback>).

Signature:

clean: AsyncParallelHook<IHeftLifecycleCleanHookOptions>;