How to keep data when removing a snap

What is the best way to leave a file/directory behind (not delete) after removing a snap application?

Use case: cryptocurrency wallet where a user could accidentally remove the application and now the wallet file is gone forever. The user would be upset and out of money if he/she doesn’t backup the file.

Last updated 1 year, 3 months ago. Help improve this document in the forum.