Contenuto principale

removeSecretMetadata

Remove metadata of secret in MATLAB vault

Since R2026a

Description

removeSecretMetadata(secretname) removes the entire metadata dictionary of the specified secret in your MATLAB vault.

example

v = removeSecretMetadata(secretname,Keys=keynames) removes just the metadata dictionary elements associated with the specified keys.

example

Examples

collapse all

Remove all metadata from a secret.

removeSecretMetadata(secretname)

View the metadata of a secret.

getSecretMetadata(secretname)

Remove two elements from the metadata of the secret.

removeSecretMetadata(secretname,Keys=["metadatakey1","metadatakey2"])

View the updated metadata of the secret.

getSecretMetadata(secretname)

Input Arguments

collapse all

Unique case-sensitive text identifier for the secret, specified as a string scalar or character vector.

Key names in metadata dictionary, specified as a string array, character vector, or cell array of character vectors. removeSecretMetadata removes only the dictionary elements associated with the specified keys. If a specified key does not exist, then removeSecretMetadata returns an error.

If you do not specify keynames, then removeSecretMetadata removes all metadata associated with the secret name.

.

More About

collapse all

Extended Capabilities

expand all

Thread-Based Environment
Run code in the background using MATLAB® backgroundPool or accelerate code with Parallel Computing Toolbox™ ThreadPool.

Version History

Introduced in R2026a