Files
fil/docs/snippets/elixir/plugins/clear_plugins.md

16 lines
448 B
Markdown
Raw Normal View History

2026-06-01 23:40:55 +02:00
```elixir title="Elixir"
# Clear all document extractors from the global registry
{:ok, _} = Kreuzberg.clear_document_extractors()
# Clear all OCR backends from the global registry
{:ok, _} = Kreuzberg.clear_ocr_backends()
# Clear all post-processors from the global registry
{:ok, _} = Kreuzberg.clear_post_processors()
# Clear all validators from the global registry
{:ok, _} = Kreuzberg.clear_validators()
IO.puts("All plugins cleared")
```