Skip to content

Deletes files older than a certain date in a predefined folder.

License

Notifications You must be signed in to change notification settings

BastiaanGroen/OldFilesRemover

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation



🗑

Old Files Remover

A Powershell script deletes files older than a certain date in a predefined folder. It checks the last-used date property of a file, when its older than the specified date, it will be deleted. It also deletes all empty folders that it can find in its predefined folder.

Caution

Be careful! there is no undo ...
This is a simpel powershell script and is not extensively tested.

Screenshot

screenshot of console

        ____  _     _   ______ _ _
       / __ \| |   | | |  ____(_| |
      | |  | | | __| | | |__   _| | ___ ___
      | |  | | |/ _  | |  __| | | |/ _ / __|
      | |__| | | (_| | | |    | | |  __\__ \
 ______\____/|_|\__,_| |_|    |_|_|\___|___/
|_   __ \  ___ _ __ ___   _____   _____ _ __
  | |__)  / _ | '_ ' _ \ / _ \ \ / / _ | '__|
  |  __ /|  __| | | | | | (_) \ V |  __| |
 _| |  \  \___|_| |_| |_|\___/ \_/ \___|_|
|____| |__|  ~ Bastiaan Groen ~
Versie: 2.0

About

Deletes files older than a certain date in a predefined folder.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published