Skip to main content

onVariableDelete

Last updated 23/07/2026

Variable deletion handler

This example demonstrates how the

callback removes an existing variable from the host application. Once the variable has been successfully deleted, the result is returned to the widget through the

onResponse
callback.

TypeScript
Variable deletion handler
onVariableDelete: (variable: DIQ_Variable, onResponse: (result: DIQ_Result) => void) => {

// Remove the variable from the application's database
database.deleteVariable(variable.key);

// Notify the widget that the operation completed successfully
onResponse({
success: true
});

};