endAll = function endAll() {
    var _this = this;

    return this.sessions().then(function (res) {
        var sessionCommands = [];

        var _iteratorNormalCompletion = true;
        var _didIteratorError = false;
        var _iteratorError = undefined;

        try {
            for (var _iterator = (0, _getIterator3.default)(res.value), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
                var session = _step.value;

                sessionCommands.push(_this.session('delete', session.id));
            }
        } catch (err) {
            _didIteratorError = true;
            _iteratorError = err;
        } finally {
            try {
                if (!_iteratorNormalCompletion && _iterator.return) {
                    _iterator.return();
                }
            } finally {
                if (_didIteratorError) {
                    throw _iteratorError;
                }
            }
        }

        return _this.unify(sessionCommands);
    });
}
End all selenium server sessions at once. Like the [`end`](/api/utility/end.html) command is this command
only supported in standalone mode.

@alias browser.endAll
@uses protocol/sessions, protocol/session
@type utility