Finished basic functionality for deleting files based on patterns