Skip to main content

How to remove Search Attributes from a Workflow in TypeScript

import { upsertSearchAttributes } from '@temporalio/workflow';

async function yourWorkflow() {
upsertSearchAttributes({ CustomIntField: [1, 2, 3] });

// ... later, to remove:
upsertSearchAttributes({ CustomIntField: [] });
}