On deleted method

def on_deleted(self, event):
        """On deleted method"""
        for delegate in self.delegates:
            if hasattr(delegate, "on_deleted"):
                delegate.on_deleted(event)