Skip to content

PowerShell Script to delete files from a list of folders that are older than a given number of days

License

Notifications You must be signed in to change notification settings

junecastillote/DeleteFilesOlderThanXDays

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This is a simple script which can be used for housekeeping growing list of files like IIS Logs, Temporary Files and so on. No special Snap-Ins or Modules required to be imported.

Download

https://github.com/junecastillote/DeleteFilesOlderThanXDays

Files

  • DeleteFilesOlderThanXDays.ps1 - The main script
  • DirList.txt - List of folders to perform deletion against. This can be a local, shared or UNC paths.

Variables

About

PowerShell Script to delete files from a list of folders that are older than a given number of days

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published