In the Command Prompt, enter del and location of folder or file you want to delete, and press “Enter” (for example del c:sers\JohnDoe\Desktop\text.Press the Windows key + R and type cmd to open the Command Prompt or just search for Command Prompt at the start.
Delete the File/Folder with Command Prompt How do you delete a file that Cannot be deleted?