Reference
Arcane.ollama.delete()
Deletes only a model authorized by verified application policy.
This focused page is derived from the mechanically checked full member inventory.
Syntax
Arcane.ollama.delete(model)
Parameters
model: OllamaModelName
Return value
Description
Deletes only a model authorized by verified application policy.
Overview
Arcane.ollama.delete(model) deletes an exact package-owned verified model
through Ollama. This destructive raw mutation can invalidate application state;
prefer the owning managed lifecycle and require explicit user authorization.
Parameters
model is a required Ollama name and must resolve to an exact app-owned
verified definition. Reserved Arcane and rollback aliases are denied.
Return value
It resolves to Ollama's bounded provider-native delete response. The raw result
does not contain a managed ArcaneOperation receipt.
Availability
This is an exclusive desktop Core mutation requiring ai.models.manage and
verified-only package policy. Unverified mode is inference-only. Android and
browser previews do not expose delete.
Errors and recovery
Invalid model, unverified-policy, missing app definition, and reserved-alias errors require the managed package workflow. Provider failure can leave the model's final state uncertain; refresh raw inventory and package verification before deciding whether a retry is safe.
Streaming, cancellation, and events
Delete is non-streaming, emits no managed operation events, and exposes no signal. The renderer timeout is two minutes. Page teardown can stop observation without rolling back host work.
Example
The helper is not invoked. Call it only after the owning application has shown the exact verified model and obtained destructive-action confirmation.
async function deleteVerifiedModelAfterConfirmation(model) {
return globalThis.Arcane.ollama.delete(model);
}