Add method to remove a file and all of its empty parent directories.