remove platform directory