removes unrequired files