This commit is contained in:
15
docs/snippets/elixir/plugins/clear_plugins.md
Normal file
15
docs/snippets/elixir/plugins/clear_plugins.md
Normal file
@@ -0,0 +1,15 @@
|
||||
```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")
|
||||
```
|
||||
Reference in New Issue
Block a user