async function main(projectId, parameterId) {
  // [START parametermanager_remove_param_kms_key]
  /**
   * TODO(developer): Uncomment these variables before running the sample.
   */
  // const projectId = 'YOUR_PROJECT_ID';
  // const parameterId = 'YOUR_PARAMETER_ID';

  // Imports the Parameter Manager library
  const {ParameterManagerClient} = require('@google-cloud/parametermanager');

  // Instantiates a client
  const client = new ParameterManagerClient();

  async function removeParamKmsKey() {
    const name = client.parameterPath(projectId, 'global', parameterId);
    const request = {
      parameter: {
        name: name,
      },
      updateMask: {
        paths: ['kms_key'],
      },
    };

    const [parameter] = await client.updateParameter(request);
    console.log(`Removed kms_key for parameter ${parameter.name}`);
    return parameter;
  }

  return await removeParamKmsKey();
  // [END parametermanager_remove_param_kms_key]
}
Removes a kms_key for global parameter using the Parameter Manager SDK.

@param {string} projectId - The Google Cloud project ID where the parameter is to be updated.
@param {string} parameterId - The ID of the parameter to update. This ID must be unique within the project.