find command to find files older than 30 days code example Example: bash get files older than find your/folder -type f -mtime +13 -exec rm {} \;