def METHOD_NAME(self):
    from corehq.messaging.scheduling.tasks import delete_alert_schedule_instances
    with transaction.atomic():
        self.deleted = True
        self.deleted_on = datetime.utcnow()
        self.save()
        self.schedule.deleted = True
        self.schedule.deleted_on = datetime.utcnow()
        self.schedule.save()
        delete_alert_schedule_instances.delay(self.schedule_id.hex)