remove unnecessary files and ignore them