#!/bin/bash

# Set the path to the folder
folder_path="/path/to/your/folder"

# Set the number of days to retain files
days_to_keep=25

# Change to the specified folder
cd "/var/www/html/creditfairadmin/public/content/" || exit

# Delete files older than the specified days
find . -type f -mtime +"$days_to_keep" -exec rm -rf {} \;

echo "Old files deleted successfully."

