My plugin allows for some custom templates to be installed into it by the user. Problem is, if someone deletes the plugin from WP in order to install a new version, all their custom files get deleted as well.
Is there a way to catch deletion and fire an alert warning the user of this, before they delete?
Oh and putting their templates into the DB is not an acceptable option.