index.js
function ensureRowsDeleted(rows) {
      async.whilst(
        () => rows.length,
        (cb) => {
          rows[0].del(() => {
            sheet.getRows(query_options, (err, _rows) => {
              rows = _rows;
              cb();
            });
          });
        },
        next);
    }
function ensureRowsDeleted(rows) {
      async.whilst(
        () => rows.length,
        (cb) => {
          rows[0].del(() => {
            sheet.getRows(query_options, (err, _rows) => {
              rows = _rows;
              cb();
            });
          });
        },
        next);
    }
function ensureRowsDeleted ( rows ) { async . whilst ( ( ) => rows . length , ( cb ) => { rows [ 0 ] . del ( ( ) => { sheet . getRows ( query_options , ( err , _rows ) => { rows = _rows ; cb ( ) ; } ) ; } ) ; } , next ) ; }
Once you delete a row, google API may incorrectly delete future rows. The only garuntee is to fetch a single row then delete it.
Once you delete a row google API may incorrectly delete future rows . The only garuntee is to fetch a single row then delete it .