[ORB-27] fixed delete function