#!/bin/bash
find /data/logs -maxdepth 5 -name "*.tmp" -type f -mtime +0 -delete
find /data/logs -maxdepth 5 -name "*.zip" -type f -mtime +2 -delete
find /data/logs -maxdepth 5 -name "*.tar.gz" -type f -mtime +2 -delete
find /data/logs -maxdepth 5 -name "*.gz" -type f -mtime +2 -delete
find /data/logs -maxdepth 5 -name "*.log" -type f -mtime +2 -delete
find /data/logs -maxdepth 5 -name "*.jsonl" -type f -mtime +2 -delete
find /data/logs -maxdepth 5 -name "gc.log.*" -type f -mtime +0 -delete
find /data/logs -maxdepth 5 -name "catalina.out.*" -type f -mtime +0 -delete
