function main(assetName = 'full asset path to add marks to') {
  // [START securitycenter_delete_security_marks]
  // Imports the Google Cloud client library.
  const {SecurityCenterClient} = require('@google-cloud/security-center');

  // Creates a new client.
  const client = new SecurityCenterClient();

  async function deleteSecurityMarks() {
    // assetName is the full resource path for the asset to update.
    /*
     * TODO(developer): Uncomment the following lines
     */
    // Specify the value of 'assetName' in one of the following formats:
    //    `organizations/${org-id}/assets/${asset-id}`;
    //    `projects/${project-id}/assets/${asset-id}`;
    //    `folders/${folder-id}/assets/${asset-id}`;
    // const assetName = "organizations/123123342/assets/12312321";
    const [newMarks] = await client.updateSecurityMarks({
      securityMarks: {
        name: `${assetName}/securityMarks`,
        // Intentionally, not setting marks to delete them.
      },
      // Only delete marks for the following keys.
      updateMask: {paths: ['marks.key_a', 'marks.key_b']},
    });

    console.log('Updated marks: %j', newMarks);
  }
  deleteSecurityMarks();
  // [END securitycenter_delete_security_marks]
}
Demostrates deleting security marks on an asset.