Storage remove doesn't work


#1

after logout from app the loginData still exists in local storage
also, i tried to use storage.claer but didn’t work

  LogOut() {
    this.Storage.remove('loginData').then(() =>{
      this.Nav.setRoot(HomePage);
      
    })
  }
![06%20AM|690x298](upload://rllK6HMzX3G4sEa11NkTslL5dlK.png)

#2

try this

 LogOut() {
      localStorage.clear();
      this.Nav.setRoot(HomePage);
  }