function(cb) {
      scott.deleteAllDogs(function(err) {
        if (err) { return cb(err); }

        scott.delete(function(err) {
          cb(err);
        });
      });
    }
function(cb) {
      scott.deleteAllDogs(function(err) {
        if (err) { return cb(err); }

        scott.delete(function(err) {
          cb(err);
        });
      });
    }
function ( cb ) { scott . deleteAllDogs ( function ( err ) { if ( err ) { return cb ( err ) ; } scott . delete ( function ( err ) { cb ( err ) ; } ) ; } ) ; }
delete the Person (and it's dogs)
delete the Person ( and it s dogs )