secretProviderRemove

Removes a secret from a configured secret provider. Read-only providers, such as environment variables, throw an error.

secretProviderRemove(key [, name]) → returns void

This function requires Lucee 7.0.2.94 and up.  Not supported on Adobe ColdFusion, etc.

Argument Reference

key string
Required

The name of the secret.

name string

The secret provider to remove it from. When omitted, it is removed from the first provider that has it.

Examples
Sample code invoking the secretProviderRemove function

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub