QVAC Logo

unloadModel( )

Unloads a previously loaded model from the server.

function unloadModel(params): Promise<void>;

Description

When the last model is unloaded (no more models remain), this function automatically closes the RPC connection, allowing the process to exit naturally without requiring manual cleanup.

Parameters

NameTypeRequired?Description
paramsobjectThe parameters for unloading the model

params

FieldTypeRequired?DefaultDescription
modelIdstring-The unique identifier of the model to unload
clearStoragebooleanfalseWhether to clear the storage for the model

Returns

Promise<void> — Resolves when the model is unloaded

Throws

When the response type is invalid or when the unload operation fails

On this page