def METHOD_NAME(self):
    for db in plproxy_config.form_processing_dbs:
        AlertScheduleInstance.objects.using(db).filter(domain=self.domain).delete()
        XFormInstance.objects.using(db).filter(domain=self.domain).delete()