In CMD window, entering the following commands:

rd/s/q D:/app   # for directory and all files inside

del/f/s/q D:/app.exe  # for a file

Updated: 02/12/2023