delete most of files not involved with essential files.