Skip to main content

onVariableFolderDelete

Last updated 23/07/2026

Variable folder deletion handler

This example demonstrates how the

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

onResponse
callback.

TypeScript
Variable folder deletion handler
onVariableFolderDelete: (folder: DIQ_VariableFolder, onResponse: (result: DIQ_Result) => void) => {

// Delete the folder from the application's database
database.deleteVariableFolder(folder.key);

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

};