    # File lib/chef/provider/user/dscl.rb, line 193
            def remove_user
              if @new_resource.supports[:manage_home]
                user_info = safe_dscl("read /Users/#{@new_resource.username}")
                if nfs_home_match = user_info.match(NFS_HOME_DIRECTORY)
                  #nfs_home = safe_dscl("read /Users/#{@new_resource.username} NFSHomeDirectory")
                  #nfs_home.gsub!(/NFSHomeDirectory: /,"").gsub!(/\n$/,"")
                  nfs_home = nfs_home_match[1]
                  FileUtils.rm_rf(nfs_home)
                end
              end
              # remove the user from its groups
              groups = []
              Etc.group do |group|
                groups << group.name if group.mem.include?(@new_resource.username)
              end
              groups.each do |group_name|
                safe_dscl("delete /Groups/#{group_name} GroupMembership '#{@new_resource.username}'")
              end
              # remove user account
              safe_dscl("delete /Users/#{@new_resource.username}")
            end