remove_actor code