Cannot remove process definition from camunda tasklist app

Delete Deployment: Test-Process-Date-Picker
Finished : Could not delete deployment: ENGINE-03004 Exception while executing Database Operation ‘DELETE_BULK deleteErrorDetailsByteArraysByIds {processInstanceIdIn=[Ljava.lang.Object;@68e7b67}’ with message ’ ### Error updating database. Cause: java.sql.SQLException: Prepared or callable statement has more than 2000 parameter markers. ### SQL: delete from ACT_GE_BYTEARRAY WHERE ID_ in ( select E.ERROR_DETAILS_ID_ from ACT_HI_EXT_TASK_LOG E WHERE E.ERROR_DETAILS_ID_ is not null and ( E.PROC_INST_ID_ IN ( ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,

Select the checkbox “Cascade”, if some process instances running in that process definition it will block deleting.

thanks for you response @aravindhrs

result was with cascade option active. Anyway I had to delete directly from database, afterwards realised that some db upgrades by update from 7.6 to 7.8 gone wrond.