Add deleting files.
Move reading file info into its own function