deletes redundant files, adds email to index