It works like deltree /y in old Windows. However, it's no longer supported in Windows XP and above.
Also, if you just copy the old deltree.exe, it wouldn't work on path names longer than 128 characters, which stumbled by compiled MATLAB program which by default has a deep MCR path.
Hoi Wong (2019). deltree (https://www.mathworks.com/matlabcentral/fileexchange/21224-deltree), MATLAB Central File Exchange. Retrieved .