Errors for DELETE Statement
By default, when an error occurs for a DELETE statement, rows already deleted remain removed and their removal cannot be undone.
When removing a large number of rows from a large table, it is recommended to remove rows in smaller batches that can be processed before the executeUpdate() method times out.