Skip to main content

DROP SECRET

Use the DROP SECRET command to drop the secrets that store sensitive credentials.

Syntax

DROP SECRET secret_name;

Parameters

Parameter or ClauseDescription
secret_nameThe name of the secret to be dropped.

Examples

CREATE SECRET mysql_pwd WITH ( backend = 'meta' ) AS '123';
----RESULT
CREATE_SECRET

DROP SECRET mysql_pwd;
----RESULT
DROP_SECRET

See also

  • Manage secrets: A comprehensive guide for secret management operations, including creation, usage, and deletion.

  • CREATE SECRET: Create a secret.

Help us make this doc better!