你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

.clear cluster cache external-artifacts command

Applies to: ✅ Azure Data Explorer

Clears cached external-artifacts of language plugins.

This command is useful when you update external-artifact files stored in external storage, as the cache may retain the previous versions. In such scenarios, executing this command will clear the cache entries and ensure that subsequent queries run with the latest version of the artifacts.

Permissions

You must have at least Database Admin permissions to run this command.

Syntax

.clear cluster cache external-artifacts ( ArtifactURI [, ... ] )

Learn more about syntax conventions.

Parameters

Name Type Required Description
ArtifactURI string ✔️ The URI for the external-artifact to clear from the cache.

Returns

This command returns a table with the following columns:

Column Type Description
ExternalArtifactUri string The external artifact URI.
State string The result of the clear operation on the external artifact.

Example

.clear cluster cache external-artifacts ("https://kustoscriptsamples.blob.core.windows.net/samples/R/sample_script.r", "https://kustoscriptsamples.blob.core.windows.net/samples/python/sample_script.py")
ExternalArtifactUri State
https://kustoscriptsamples.blob.core.windows.net/samples/R/sample_script.r Cleared successfully on all nodes
https://kustoscriptsamples.blob.core.windows.net/samples/python/sample_script.py Cleared successfully on all nodes