Added .reject! to .each loop to delete directories and files.