delete unnecessary directory.