delete multiple tables with JOOQ code dslContext.deleteFrom(folderFile.leftJoin(file).on(folderFile.FILE_ID.eq(file.ID))).where(file.REL_ID.eq("relId)).execute();