0

I'm developing Google Sheets Add-on.

I was just wandering that the document properties store is deleted when users uninstall the add-on. GAS don't have Trigger like 'onUninstalled'. If the properties continue to remain, I don't know where I write the program that delete them.

Who knows my problem??

Rubén
  • 34,714
  • 9
  • 70
  • 166
Pirikara
  • 343
  • 3
  • 12
  • 5
    You'd need to inform the user that they need to delete the settings before uninstalling the add-on, and provide a way to do that from your add-on. Or you could save all the settings to a text file, or in a separate sheet tab, or in another spreadsheet and not save anything to Properties Service. – Alan Wells Sep 28 '20 at 12:18

1 Answers1

1

As it was mentioned in a comment, the properties (script, document, user) aren't deleted when the user uninstall the add-on.

You might add a way for users to delete the properties and warn them that the data stored in properties should be deleted before uninstalling the add-on.

Related

Rubén
  • 34,714
  • 9
  • 70
  • 166