QVAC Logo

unloadModel( )

Unloads a previously loaded model from the server. 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.

function unloadModel(params: { clearStorage?: boolean; modelId: string }): Promise

Parameters

NameTypeRequired?Description
params\{ clearStorage?: boolean; modelId: string \}The parameters for unloading the model

Returns

Promise

Throws

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

On this page