Trim unnecessary files