delete unused files and change their location