Event or query for deleted dashboard gadget

Does anyone know if theres:

  1. a way to get an event within a dashboard gadgets front end code when the user deletes the gadget? Goal would be to clean up forge storage data associated with that instance.
  2. if there isn’t a way to do that, is there a rest call one can make to see if a dashbaord id + gadget id is still valid? This would be used via a scheduled task to clean up later.

Hey @lead_crimsalytics,

While there are currently no events for dashboard deletion, you may be able to utilise the Get gadgets api to query dashboards and identify whether a dashboard gadget exists by either the gadget’s module key, or the existing gadget id.