Hi everyone, this is my first post so let me know if anything needs to be changed.<\/p>\n
Advertisement
I’m working on cleaning up a file system. I want to get rid of files that haven’t been accessed for a long time (get rid of anything last accessed before x date).<\/p>\n
Advertisement
In my research, I found Powershell scripts that recursively look through folders and delete files that were created before a certain date, but I can’t find any that delete files that were last accessed before a certain date. Does anyone have some input on how I can go about this?<\/p>\n
I would appreciate any tips. Thanks!<\/p>","upvoteCount":7,"answerCount":3,"datePublished":"2021-10-29T15:59:02.000Z","author":{"@type":"Person","name":"spiceuser-s6au3","url":"https://community.spiceworks.com/u/spiceuser-s6au3"},"acceptedAnswer":{"@type":"Answer","text":"
Welcome<\/p>\n
What have you tried? Where are you stuck?<\/p>\n
If you post code, please use the ‘Insert Code’ button. Please and thank you!<\/p>\n