Delete Local Files from Command Prompt

Delete the files from the local folder as per the specific dates,

For example if you want to delete the files 7 days before, use the below command: 
  1. forfiles /p "<<File location>>" /s /m *.* /d -7 /c "cmd /c del @path"   
  2.    
  3. <<File location>> --> L;ocation of the files.  
  4. -7 --> No of days