Updated on 2024-08-20 GMT+08:00

DROP CLIENT MASTER KEY

Description

Deletes a CMK.

Precautions

  • Only the CMK owner or a user who has been granted the DROP permission can run this command. By default, the system administrator has this permission.
  • This command can only be used to delete the metadata information recorded in the system catalog of the database, but cannot be used to delete the CMK file. You need to use keytool to delete the CMK file.

Syntax

1
DROP CLIENT MASTER KEY [ IF EXISTS ] client_master_key_name [, ...] [ CASCADE | RESTRICT ];

Parameters

  • IF EXISTS

    If a specified CMK does not exist, a notice rather than an error is issued.

  • client_master_key_name

    Specifies the name of a CMK to be deleted.

    Value range: a string. It is the name of an existing CMK.

  • CASCADE | RESTRICT

    Allows/Restricts to cascadingly delete objects that depend on the CMK.

Helpful Links

CREATE CLIENT MASTER KEY