Clearing Out AIR’s Encrypted Local Store

When developing an AIR app, it's common to want to start it clean, as if there were a new user launching the app for the first time. Flash Builder even supports this, with a checkbox in the Debug Configuration dialog for "Clear application data on each launch".

This clears out the local storage for the application, but doesn't clear out the encrypted local storage, or ELS. ELS is stored separately, and there's no way to clear this from within Flash Builder.

To clear this out manually, you'll need to remove the folder that contains the local storage. On the Mac, this is:

[cc]
~/Library/Application Support/Adobe/AIR/ELS/my.application.id
[/cc]

And on Windows, it's:

[cc]
C:\Users\username\AppData\Roaming\Adobe\AIR\ELS\my.application.id
[/cc]

Remove this folder, check the "Clear application data on each launch" checkbox, and the only data remaining will be data that your application explicitly writes elsewhere on the file system.