Files
fil/docs/snippets/kotlin/plugins/unregister_plugins.md
Henrik Jess Nielsen b4c07d3693
All checks were successful
Deploy fil (kreuzberg) / deploy (push) Successful in 49s
Nomad changes
2026-06-01 23:40:55 +02:00

13 lines
491 B
Markdown

```kotlin title="Kotlin"
import dev.kreuzberg.*
fun unregisterPlugins() {
// Each plugin type has a static unregister helper on its bridge class.
// The string argument is the name returned by the plugin's name() method.
PostProcessorBridge.unregisterPostProcessor("word-count")
ValidatorBridge.unregisterValidator("min-length-validator")
OcrBackendBridge.unregisterOcrBackend("my-ocr-backend")
EmbeddingBackendBridge.unregisterEmbeddingBackend("my-embedder")
}
```