Force Delete files Or Folders Using CMD

 How To Delete A Single File Using CMD

  • Run The command prompt (win+R type cmd and hit enter)
  • Now Type the following command line and hit enter
    DEL /F /Q /A <File Path>
    So Here 
    F stands for Force Deletion Of Files
    Q Ensures the force deletion of read only files
    A will select only the files with the ready for archiving attribute
    Finally you Just Need to Replace <File Path> with your file path 


 


  • Run The command prompt (win+R type cmd and hit enter)
  • Now Type the following command line and hit enter
    RD /S /Q <Path of the Folder>

    Here
    RD stands for remove Directory
    S Deletes all sub folders and files
    Q Deletes directories without confirmation
    Replace <Path of the Folder>  with your folder path 











                                                                                                                    Anglestacks

0 comments:

Post a Comment