def METHOD_NAME(self, obj):
    obj.deleted = True
    obj.save(update_fields=["deleted"])
    # we won't stand idly by and watch tprek delete needed units willy-nilly without raising a ruckus!
    if obj.events.count() > 0:
        # try to replace by tprek and, failing that, matko
        replaced = replace_location(replace=obj, by_source="tprek")
        if not replaced:
            # matko location may indeed be deleted by an earlier iteration
            replaced = replace_location(
                replace=obj, by_source="matko", include_deleted=True
            )
        if not replaced:
            # matko location may never have been imported in the first place, do it now!
            call_command("event_import", "matko", places=True, single=obj.name)
            replaced = replace_location(replace=obj, by_source="matko")
        if not replaced:
            logger.warning(
                "Tprek deleted location %s (%s) with events."
                "No unambiguous replacement was found. "
                "Please look for a replacement location and save it in the replaced_by field. "
                "Until then, events will stay mapped to the deleted location."
                % (obj.id, str(obj))
            )
    return True