March 18, 20251 yr What the title says basically. I've done a few googles, but all the solutions seem to be for deleting files after x days. This isn't really what I'm looking for. I want to set a size limit on a folder, and then when the script is run, if the size limit is exceeded, then it deletes files in the folder, starting with the oldest files first, until the folder is then within the set limit. Like a DVR. Anyone got any ideas? Doesn't have to be a script, if there's an app in the community apps that does this when I'm happy to use that too. Edited March 18, 20251 yr by xanderflix
March 26, 20251 yr I'm also looking to do this, did you find a solution? For me it could be the size of a share or a disk or a folder approaching a certain limit, the oldest files should be deleted
July 11, 2025Jul 11 @xanderflix @BobbyTables Not a direct solution to what you guys are looking for, but It is a starting point, which might help you come up with the code your looking for. Its something I was tinkering with long time ago, but I'm sure it could be modified or at least maybe a starting point to build something.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.