- hosts: windows tasks: - name: Delete user profile ansible.windows.win_user_profile: username: user1 state: absent - name: Delete local Windows user ansible.windows.win_user: name: user1 state: absent