clean api directory