win_file module unable to delete directory symbolic links present inside a target dir

I am trying to delete a parent dir with lots of stuff inside with the help of win_file:

  • name: remove all
    win_file: path=“E:\root” state=absent

This folder contains a lot other subfolders and symbolic links within itself - both directory and file symbolic links. When i try to run this, i get “DirectoryNotFoundException” for the directory symbolic links. For file symbolic links, win_file is able to delete all of them.
How can i make Ansible delete everything in a directory, including directory symbolic links ?

Still haven’t figured out the solution. Need help here…