Synopsis: Based on the bestselling novel by master storyteller Nicholas Sparks, THE LONGEST RIDE centers on the star-crossed love affair between Luke, a former champion bull rider looking to make a comeback, and Sophia, a college student who is about to embark upon her dream job in New York City's art world.
More on that here. Note that if we want to delete all files older than X we would use-lt. ie, the timestamp of the file is older than 15 minutes ago. If we want to delete files newer than X we would use-gt. ie, the timestamp of the file is newer than 15 minutes ago.X, in our case, is the time now minus 15 minutes.owershell: delete files older than X. It really is that easy. Get-ChildItem $env:temp /myfiles | where { $_ .Lastwritetime-lt (date).addminutes(- 15)} | remove-item. E verybody has needed the 'delete files older than X' script.
Weâll use this in order to figure out what files are older than a certain number of days, and then use the rm command to delete them. Command Syntax. find /path/to/files* -mtime +5 -exec rm {} \; Note that there are spaces between rm, {}, and \; The second argument, -mtime, is used to specify the number of days old that the file is. 2  If you enter +5, it will find files older than 5 days. 3  The third argument, -exec, allows you to pass in a command such as rm. 4  The {} \; at the end is required to end the command.