code: function(cell) {
              if (cell.isReal) {
                 if (cell.isRowspan) {
                     this.collapseCellToNextRow(cell);
                 } else {
                     removeElement(cell.el);
                 }
              } else {
                  if (parseInt(api.getAttribute(cell.el, 'rowspan'), 10) > 2) {
                      cell.el.setAttribute('rowspan', parseInt(api.getAttribute(cell.el, 'rowspan'), 10) - 1);
                  } else {
                      cell.el.removeAttribute('rowspan');
                  }
              }
          }
docs: Removes a cell when removing a row If is rowspan cell then decreases the rowspan and moves cell to next row if needed (is first cell of rowspan)