% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/llama.R
\name{llama_lora_remove}
\alias{llama_lora_remove}
\title{Remove a LoRA adapter from context}
\usage{
llama_lora_remove(ctx, lora)
}
\arguments{
\item{ctx}{Context handle returned by [llama_new_context]}

\item{lora}{LoRA adapter handle to remove}
}
\value{
An integer scalar: 0 on success, -1 if the adapter was not applied
  to this context.
}
\description{
Deactivates a specific LoRA adapter from the context.
}
\examples{
\dontrun{
# Remove a specific adapter while keeping others active
llama_lora_remove(ctx, lora)
result <- llama_generate(ctx, "Without adapter: ", max_new_tokens = 20L)
}
}
