diff --git a/packages/toolpad-components/src/DataGrid.tsx b/packages/toolpad-components/src/DataGrid.tsx index 92bcd4b9114..4ef95171e21 100644 --- a/packages/toolpad-components/src/DataGrid.tsx +++ b/packages/toolpad-components/src/DataGrid.tsx @@ -393,10 +393,6 @@ interface Selection { id?: any; } -interface OnDeleteEvent { - row: GridRowsProp[number]; -} - interface ToolpadDataGridProps extends Omit { rows?: GridRowsProp; columns?: SerializableGridColumns; @@ -405,7 +401,6 @@ interface ToolpadDataGridProps extends Omit void; - onDelete?: (event: OnDeleteEvent) => void; hideToolbar?: boolean; } @@ -614,16 +609,5 @@ export default createComponent(DataGridComponent, { helperText: SX_PROP_HELPER_TEXT, typeDef: { type: 'object' }, }, - onDelete: { - typeDef: { - type: 'event', - arguments: [ - { - name: 'event', - tsType: `{ row: ThisComponent['rows'][number] }`, - }, - ], - }, - }, }, });