remove functions directory