Skip to main content

onDrawingDelete

Last updated 12/05/2026

Drawing deletion handler

This example demonstrates how the

callback sends a request to the host application to delete a drawing revision. Once the request completes, the result is returned to the widget through the

onResponse
callback.

TypeScript
Drawing deletion handler
onDrawingDelete: (
drawing: DIQ_DrawingRevision,
onResponse: (result: DIQ_Result) => void
) => {
deleteDrawingService(drawing.key)
.then(() => {
onResponse({ success: true });
})
.catch((error) => {
onResponse({ success: false, error });
});
};