Skip to content

source clear command

Clear files created by node-llama-cpp

Programmatically calling the source clear command in your code

To programmatically call this command in your code, call the ClearLlamaCppBuildCommand function:

typescript
import {
ClearLlamaCppBuildCommand
} from "node-llama-cpp/commands";
await
ClearLlamaCppBuildCommand
({
type
: "all"});

Note: The node-llama-cpp/commands import is subject to change and is unsupported inside Electron

Usage

shell
npx --no node-llama-cpp source clear [type]

Options

Option Description
--type [string] Files to clear (default: all) (string)

choices: source, builds, cmake, all

-h, --help Show help
-v, --version Show version number