delete unused files and create directory