My Netatmo Welcome Camera plugin creates an Indigo variable for each person seen by the camera and identified in the Netatmo iOS or Android app. A user has asked if I can provide an option to automatically delete variables associated with persons who have been deleted in the Netatmo app. This is easy to do, but obviously if the user has created a trigger based on one of these variables deleting the variable will break things.
Is there a (Python) way to check to see if a variable has any dependencies before deleting it?