clearTid

TID is the unique identifier that gets assigned to each customer who visits your Touchpoints. You can programmatically clear the customer's TID by calling the following:
clearTid(): Promise<MXOResult<null>>

Example of usage:

MedalliaMXO.clearTid()
	.then(mxoResult => {
		if (mxoResult.value && mxoResult.value.apiName) {
			// error case
			console.error(mxoResult.value)
		} else {
			// success case
			console.log("Tid is cleared")
		}
	})
	.catch(error => {
                console.error(error)
	})
try {
	const {value} = await MedalliaMXO.clearTid()
	if (value && value.apiName) {
		// error case
            	console.error(value)
        } else {
            	// success case
            	console.log("Tid is cleared")
        }
} catch (error) {
	console.error(error)
}
Note: This API removes tid from local storage only. For instructions on how to completely remove a user's data from Medallia Experience Orchestration, see our api documentation.