Home / Search/ Language Reference/ Commands/.drop all metadata (Deprecated)

.drop all metadata (Deprecated)

The .drop all metadata command deletes all Cribl Search metadata for the specified Datasets.

Deprecated Feature

Cribl is deprecating this feature in preparation for a different solution. We’ll remove it in a future release.

Please continue to report issues through normal Cribl support channels, but assistance for deprecated features might be limited.

// drop metadata from the cribl_search_sample Dataset
.drop all metadata(cribl_search_sample)

Purpose

Use .drop all metadata to delete Cribl Search metadata generated by .generate metadata or Dataset Acceleration.

You can use .drop all metadata with the following Dataset Provider types:

To see which Datasets contain Cribl Search metadata, run dataset=$vt_object_list_summary.

Permissions

Search Member TypePermissions
AdminCan drop metadata from all Datasets in their Organization.
EditorCan drop metadata only from those Datasets that they created themselves or that were shared with them.
UserCan drop metadata only from those Datasets that were shared with them.

Syntax

     .drop all metadata(DatasetID[, ...]) [with(reason = "InvestigationReason")]

You can also combine this command with operators.

Parameters

ParameterTypeDescription
DatasetIDstringThe ID of the Dataset that you want to clear of metadata. Separate multiple IDs with a comma ,. Wildcards * are not supported.
InvestigationReasonstringThe reason for running the .drop all metadata command, which is added to the Cribl Search audit log.

Returns

Returns an event per each processed Dataset, with the following fields:

FieldDescription
successtrue if the metadata was successfully deleted, false otherwise.
datasetThe ID of the Dataset that was cleared of metadata.
datasetTypeThe type of the Dataset that was cleared of metadata.
messageA success or error message.

Examples

Drop Cribl Search metadata from the cribl_search_sample Dataset.

.drop all metadata(cribl_search_sample) with(reason = "I don't need this metadata anymore.")