def METHOD_NAME(task_ids: Iterable[int]):  #  | int
    try:
        if isinstance(task_ids, int):
            task_ids = [task_ids]
        analyses_tmp = []
        tasks = mongo_find("analysis", {"info.id": {"$in": task_ids}}, {"behavior.processes.calls": 1})
        for task in tasks or []:
            for process in task.get("behavior", {}).get("processes", []):
                if process.get("calls"):
                    mongo_delete_many("calls", {"_id": {"$in": process["calls"]}})
            analyses_tmp.append(task["_id"])
        if analyses_tmp:
            mongo_delete_many("analysis", {"_id": {"$in": analyses_tmp}})
    except Exception as e:
        log.error(e, exc_info=True)