Removes unnecessary files.