code: function (state, payload) {
          if (payload && payload.entity) {
              (new Query(state, payload.entity)).deleteAll();
              return;
          }
          Query.deleteAll(state);
      }
docs: Delete all data from the store.