What is Command Prompt?
Command Prompt, also known as cmd.exe or cmd, is the command-line interpreter on Windows NT, Windows CE, OS/2 and eComStation operating systems. It is the counterpart of COMMAND.COM in DOS and Windows 9x systems (where it is also called "MS-DOS Prompt"), and analogous to the Unix shells used on Unix-like systems.
Reason Why the file/folder cannot be deleted:
Sometimes deleting a folder and its contents from Windows Explorer can take an eternity especially when dealing with large folders as it deletes each file one by one. The faster way is to delete the folder from the windows command prompt.
Code for deleting a file:
DEL /F /Q /A <Path of the file>
Code for deleting a folder:
First, open the cmd then type the following command line and hit enter.
RD /S /Q <Path of the Folder>