Some time ago, something somewhere went wrong.

This is how I ended up with a directory containing 1567 layers of directories, that my windows just was not willing to delete. I just got the error message, the directory wasn’t empty, when I tried to delete it using the Windows UI.

Some years ago Microsoft introduced a feature called “Windows Linux Subsystem” WSL, which allows linux binaries to run on a windows 10.
This way you can use your favorite console editor may it be pico or nano, run netcat and other usefull stuff, you can even run cronjobs.

As it was inside of a directory opened in VS Code, I gave it a shot with linux bash. At the time, I had no idea, how deep the directory structure went. find . -type d -printf '%d\n' | sort -rn | head -1 took care of that and answered 1567.

By just using the normal rm -rf ./* I got rid of the tree, windows itself was not able to delete.