def destroy(self, actor_id):
        if self.actors not in actor_id:
            self._actor_not_found(actor_id)

        # @TOOD - check order here
        self.node.metering.remove_actor_info(actor_id)
        a = self.actors[actor_id]
        a.will_end()
        self.node.pm.remove_ports_of_actor(a)
        # @TOOD - insert callback here
        self.node.storage.delete_actor(actor_id)
        del self.actors[actor_id]
        self.node.control.log_actor_destroy(a.id)

    # DEPRECATED: Enabling of an actor is dependent on wether it's connected or not
dataset/ETHPy150Open EricssonResearch/calvin-base/calvin/runtime/north/actormanager.py/ActorManager.destroy/swapped operands of `not in`