code: function (context, payload) {
          return __awaiter(this, void 0, void 0, function () {
              return __generator(this, function (_a) {
                  if (payload && payload.entity) {
                      context.commit('deleteAll', { entity: payload.entity });
                      return [2 /*return*/];
                  }
                  context.commit('deleteAll');
                  return [2 /*return*/];
              });
          });
      }
docs: Delete all data from the store.