Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is chrome.storage.sync data cleared when an extension or app is uninstalled?

I have a simple Chrome extension that uses chrome.storage.sync to store a list of tasks.

The following command in the console would clear all sync data for the extension:

chrome.storage.sync.clear()

If my users are having trouble with syncing, can I simply instruct them to uninstall the extension and install it again to have the same effect as that command?

like image 798
Benjamin Humphrey Avatar asked Oct 15 '14 10:10

Benjamin Humphrey


People also ask

Where are chrome extensions data stored?

When extensions are installed into Chrome they are extracted into the C:\Users\[login_name]\AppData\Local\Google\Chrome\User Data\Default\Extensions folder. Each extension will be stored in its own folder named after the ID of the extension.

Can Chrome extensions save data?

One way to share data between a background script and the other scripts that make up the extension is to save the data to a location which is accessible to all the scripts in the extension. We can use the browser localStorage API or chrome. storage which is specific to Chrome extensions.

Do Chrome extensions get synced?

Google Chrome lets you sync your bookmarks and extensions so you don't have to add or transfer them to your other computers.


1 Answers

It's one of those questions where the answer is "why don't you try it?"

I have a test extension published in Chrome Web Store for storage.sync testing. I can confirm that uninstalling it with Chrome Sync enabled nukes the storage.

like image 188
Xan Avatar answered Sep 22 '22 14:09

Xan