Skip to content

buildClean

Removes the distribution folder and its contents.

This function deletes the entire distribution folder to ensure a clean build environment.

Import:

import { buildClean } from 'obsidian-dev-utils/script-utils/build';

Signature:

function buildClean(): Promise<void>

Returns: Promise<void> — A Promise that resolves when the folder has been removed.