remove file from DocumentsDirectory when uninstalling?

Or how to detect that app was just reintalled?

I’m uninstalling app and file with latest state of game still exists in DocumentsDirectory. :( 

Documentation says about system.DocumentsDirectory: 

This directory is intended for files that the app cannot regenerate on its own, for example user-specific data, “app state” data, or anything that the app generates post-installation. Files in this directory will persist for the lifetime of the app — that is, until the app is explicitly removed from the device.

If you remove the app, it should clear system.DocumentsDirectory. If you have multiple users setup (assuming this is for Android), then you may have to remove the app for all users to completely get rid of it.

Rob

If you remove the app, it should clear system.DocumentsDirectory. If you have multiple users setup (assuming this is for Android), then you may have to remove the app for all users to completely get rid of it.

Rob