Sectorlink
  • 0 Shopping Cart
  • Home
  • Store
    • Cloud Web Hosting
    • Dedicated Servers
    • Site Builder With Hosting
    • Cloud Servers ( VPS )
    • Server Colocation
    • SSL Certificates
    • Email Services
    • Plesk Web Hosting
    • cPanel Web Hosting
    • Register a New Domain
    • Transfer Domains to Us
  • Announcements
  • Knowledgebase
  • Contact Us
  • More
  • Account
    • Login
    • Forgot Password?
  1. Portal Home
  2. Knowledgebase
  3. Dedicated Servers
  4. Recursively delete old files in Windows

  Categories

Client Portal
5
Cloud Web Hosting
34
CloudPod / VPS
1
Co Location
2
Control Panels
20
Dedicated Servers
23
Development
16
Domain Registration
6
E-Mail
14
Frequently Asked Questions
2
Legacy Web Hosting
2
SSL Certificates
2
Website Builder Hosting
2
WordPress
1

  Categories

  Support

My Support Tickets
Announcements
Knowledgebase
Open Ticket

Recursively delete old files in Windows Print

  • 2

The following command will recursively delete files older than X number of days:

forfiles -p "C:\PATH\TO\FILES" -s -m *.* /D -[number of days] /C "cmd /c if @isdir==FALSE del @path"

Was this answer helpful?

Related Articles

FileZilla FTP server recommended settings Edit -> Settings*Note: settings not explictly mentioned can generally be left as defaults... MySQL scheduled backups on Linux via CRON The following commands can be added via crontab.  As-is, they will dump all MySQL databases to a... Import MS SQL T-SQL script A MS SQL T-SQL script can be imported via the following command-line: sqlcmd -U db_user -P... Windows 2003 IIS will not start Problem: IIS is stopped and trying to start it returns an "IIS admin service not started"... MVC3 and Medium Trust If you run .NET in Medium Trust and receive an error like this when installing MVC 3: Error...
« Back

  Support

My Support Tickets
Announcements
Knowledgebase
Open Ticket
  • Contact Us
  • Terms of Service

Copyright © 2025 Sectorlink. All Rights Reserved.


Loading...
Loading...

Generate Password

Please enter a number between 8 and 64 for the password length