remove lib and api