indexedDB keyvaluepairs stores the data even though it’s empty

I’m using redux persist to store my data. When i open my page there is no data and i see the indexedDB is empty in localforage of browser. But then i add a data it creates a persist:root to keep that data, but when i deleted that data , persist:root is still in there . I want to remove it too when it is empty and useless.

Here is my store for more information :

'use client';

import { combineReducers, configureStore } from '@reduxjs/toolkit';
import {
  useDispatch as useDispatchBase,
  useSelector as useSelectorBase,
} from 'react-redux';
import { setupListeners } from '@reduxjs/toolkit/query';
import {
  persistReducer,
  persistStore,
  PERSIST,
  REHYDRATE,
} from 'redux-persist';
import localForage from 'localforage';

import organizationSlice from './slices/organizationSlice';
import { campaignApi } from './rtkApi/campaignApi';
import globalSlice from './slices/globalSlice';
import entrepreneurSlice from './slices/entrepreneurSlice';
import physicalPartnerSlice from './slices/physicalPartnerSlice';
import legalPartnerSlice from './slices/legalPartnerSlice';
import { phoneNumberApi } from './rtkApi/phoneNumbersApi';
import { organizationSectorApi } from './rtkApi/organizationSectorApi';
import { activityTypeApi } from './rtkApi/activityTypeApi';
import { partnerStatusApi } from './rtkApi/partnerStatusApi';
import { voenOrganizationApi } from './rtkApi/voenOrganizationApi';
import { curatorApi } from './rtkApi/curatorApi';
import { fileApi } from './rtkApi/fileApi';
import limitContractSlice from './slices/limitContractSlice';
import filterLimitContractsSlice from './slices/filterLimitContractsSlice';

const persistConfig = {
  key: 'root',
  storage: localForage,
  version: 1,
  timeout: 0,
  whiteList: [
    'organization',
    'legalPartner',
    'physicalPartner',
    'entrepreneur',
    'limitContracts',
    'filterFields',
  ],
};

const rootReducer = combineReducers({
  organization: organizationSlice,
  limitContracts: limitContractSlice,
  physicalPartner: physicalPartnerSlice,
  legalPartner: legalPartnerSlice,
  global: globalSlice,
  entrepreneur: entrepreneurSlice,
  filterFields: filterLimitContractsSlice,
  [campaignApi.reducerPath]: campaignApi.reducer,
  [phoneNumberApi.reducerPath]: phoneNumberApi.reducer,
  [organizationSectorApi.reducerPath]: organizationSectorApi.reducer,
  [activityTypeApi.reducerPath]: activityTypeApi.reducer,
  [partnerStatusApi.reducerPath]: partnerStatusApi.reducer,
  [voenOrganizationApi.reducerPath]: voenOrganizationApi.reducer,
  [curatorApi.reducerPath]: curatorApi.reducer, // Add the phoneNumberApi reducer
  [fileApi.reducerPath]: fileApi.reducer, // Add the phoneNumberApi reducer
});

const persistedReducer = persistReducer(persistConfig, rootReducer);

export const store = configureStore({
  reducer: persistedReducer,
  middleware: (getDefaultMiddleware: any) =>
    getDefaultMiddleware({
      serializableCheck: {
        ignoredActions: [PERSIST, REHYDRATE],
      },
    }).concat(
      campaignApi.middleware,
      phoneNumberApi.middleware,
      organizationSectorApi.middleware,
      activityTypeApi.middleware,
      partnerStatusApi.middleware,
      voenOrganizationApi.middleware,
      curatorApi.middleware,
      fileApi.middleware
    ), // Add the phoneNumberApi middleware
});

// Infer the `RootState` and `AppDispatch` types from the store itself
export type RootState = ReturnType<typeof store.getState>;

// Inferred type: { customers: customersState}
export type AppDispatch = typeof store.dispatch;

// Utilize `useDispatch` for TypeScript
export const useDispatch = () => useDispatchBase<AppDispatch>();

// And utilize `useSelector`
export const useSelector = <TSelected = unknown>(
  selector: (state: RootState) => TSelected
): TSelected => useSelectorBase<RootState, TSelected>(selector);

setupListeners(store.dispatch);

export const persistor = persistStore(store);

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật