async function main(projectId, parameterId) {
  // [START parametermanager_delete_param]
  /**
   * TODO(developer): Uncomment these variables before running the sample.
   */
  // const projectId = 'my-project';
  // const parameterId = 'my-parameter';

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

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

  async function deleteParam() {
    // Construct the fully qualified parameter name
    const name = client.parameterPath(projectId, 'global', parameterId);

    // Delete the parameter
    await client.deleteParameter({
      name: name,
    });

    console.log(`Deleted parameter: ${name}`);
    return name;
  }

  return await deleteParam();
  // [END parametermanager_delete_param]
}
Deletes a parameter from the global location of the specified project using the Google Cloud Parameter Manager SDK.

@param {string} projectId - The Google Cloud project ID where the parameter is located.
@param {string} parameterId - The ID of the parameter to delete.