# How to remove local storage as app get uninstall

**URL:** <https://forum.ionicframework.com/t/how-to-remove-local-storage-as-app-get-uninstall/14823>\
**Category:** ionic-v1\
**Created:** [December 29, 2014, 7:22am UTC](https://forum.ionicframework.com/t/how-to-remove-local-storage-as-app-get-uninstall/14823 "2014-12-29T07:22:23Z")\
**Posts on this page:** 10\
**Page:** 2

<div class="post-metadata">

**Author:** ![sahildaga95](https://avatars.discourse-cdn.com/v4/letter/s/8e7dd6/32.png) [@sahildaga95](https://forum.ionicframework.com/u/sahildaga95)\
**Post date:** [April 18, 2017, 9:54am UTC](https://forum.ionicframework.com/t/how-to-remove-local-storage-as-app-get-uninstall/14823/21 "2017-04-18T09:54:09Z")

</div>

> [@ypilevne](#):
>
> ame issue. I convert my app because of this from localstorage to sqllite db. Still have same problem…

Any Updates on this Issue ??

---

<div class="post-metadata">

**Author:** ![ypilevne](https://avatars.discourse-cdn.com/v4/letter/y/aca169/32.png) [@ypilevne](https://forum.ionicframework.com/u/ypilevne)\
**Post date:** [April 18, 2017, 10:06am UTC](https://forum.ionicframework.com/t/how-to-remove-local-storage-as-app-get-uninstall/14823/22 "2017-04-18T10:06:39Z")

</div>

Unfortunately, I could not find any solution

---

<div class="post-metadata">

**Author:** ![sahildaga95](https://avatars.discourse-cdn.com/v4/letter/s/8e7dd6/32.png) [@sahildaga95](https://forum.ionicframework.com/u/sahildaga95)\
**Post date:** [April 18, 2017, 11:33am UTC](https://forum.ionicframework.com/t/how-to-remove-local-storage-as-app-get-uninstall/14823/23 "2017-04-18T11:33:11Z")

</div>

Found a workaround, check if it helps you,  
Go to Platform/Android/AndroidMainfest.xml  
Replace two tags with the following

`<manifest android:hardwareAccelerated="true" android:versionCode="30740" android:versionName="3.0.740" package="com.locationguru.teampilot" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools">`

`<application android:allowBackup="false" android:fullBackupContent="false" android:hardwareAccelerated="true" android:icon="@mipmap/icon" android:label="@string/app_name" android:supportsRtl="true" tools:replace="android:allowBackup">`

As per reference from [here](http://stackoverflow.com/questions/33169618/an-android-app-remembers-its-data-after-uninstall-and-reinstall).

---

<div class="post-metadata">

**Author:** ![ypilevne](https://avatars.discourse-cdn.com/v4/letter/y/aca169/32.png) [@ypilevne](https://forum.ionicframework.com/u/ypilevne)\
**Post date:** [April 18, 2017, 12:09pm UTC](https://forum.ionicframework.com/t/how-to-remove-local-storage-as-app-get-uninstall/14823/24 "2017-04-18T12:09:54Z")

</div>

> [@sahildaga95](#):
>
> android:allowBackup=“false” android:fullBackupContent=“false”

I will try this. Thanks for the tip!

---

<div class="post-metadata">

**Author:** ![ypilevne](https://avatars.discourse-cdn.com/v4/letter/y/aca169/32.png) [@ypilevne](https://forum.ionicframework.com/u/ypilevne)\
**Post date:** [April 29, 2017, 1:14pm UTC](https://forum.ionicframework.com/t/how-to-remove-local-storage-as-app-get-uninstall/14823/25 "2017-04-29T13:14:56Z")

</div>

🙂 thank you so much. It works!

---

<div class="post-metadata">

**Author:** ![PrithiviRaj](https://avatars.discourse-cdn.com/v4/letter/p/ecccb3/32.png) [@PrithiviRaj](https://forum.ionicframework.com/u/PrithiviRaj)\
**Post date:** [May 23, 2017, 5:29am UTC](https://forum.ionicframework.com/t/how-to-remove-local-storage-as-app-get-uninstall/14823/26 "2017-05-23T05:29:17Z")

</div>

@sahildaga95 Thanks! it worked. I am struggling with this for long time 🙂

---

<div class="post-metadata">

**Author:** ![Gelo](https://avatars.discourse-cdn.com/v4/letter/g/ba8739/32.png) [@Gelo](https://forum.ionicframework.com/u/Gelo)\
**Post date:** [October 10, 2017, 7:31pm UTC](https://forum.ionicframework.com/t/how-to-remove-local-storage-as-app-get-uninstall/14823/27 "2017-10-10T19:31:17Z")

</div>

I know this method but can we do it programmatically. because may users don’t know this method

---

<div class="post-metadata">

**Author:** ![mechelogs](https://avatars.discourse-cdn.com/v4/letter/m/6f9a4e/32.png) [@mechelogs](https://forum.ionicframework.com/u/mechelogs)\
**Post date:** [August 6, 2019, 1:57pm UTC](https://forum.ionicframework.com/t/how-to-remove-local-storage-as-app-get-uninstall/14823/28 "2019-08-06T13:57:01Z")

</div>

Thanks @sahildaga95. Works perfectly fine 😃

---

<div class="post-metadata">

**Author:** ![ishaquemujtaba](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/ishaquemujtaba/32/125667_2.png) [@ishaquemujtaba](https://forum.ionicframework.com/u/ishaquemujtaba)\
**Post date:** [August 6, 2019, 2:13pm UTC](https://forum.ionicframework.com/t/how-to-remove-local-storage-as-app-get-uninstall/14823/29 "2019-08-06T14:13:47Z")

</div>

Hi [muhammadFaizanKhan](https://forum.ionicframework.com/u/muhammadFaizanKhan)  
just do like this  
this.nativestorage.remove(“key”).then(()=\>{ // go to the login page or where you want})

cheers!!

---

<div class="post-metadata">

**Author:** ![Dipesh\_jayswal](https://avatars.discourse-cdn.com/v4/letter/d/a587f6/32.png) [@Dipesh\_jayswal](https://forum.ionicframework.com/u/Dipesh_jayswal)\
**Post date:** [October 23, 2021, 12:04pm UTC](https://forum.ionicframework.com/t/how-to-remove-local-storage-as-app-get-uninstall/14823/30 "2021-10-23T12:04:47Z")

</div>

🙂 thank you so much. It works!

[Previous page](https://forum.ionicframework.com/t/how-to-remove-local-storage-as-app-get-uninstall/14823.md?page=1)
