#!/bin/bash
echo "Starting cleanup of unnecessary files and logs..."
echo "Removing log files..."
rm -f *.log
rm -f .cloudflared.log
echo "Removing temporary location files..."
rm -f location_*.txt
rm -f current_location.bak
echo "Removing captured images..."
rm -f cam*.png
echo "Removing temporary HTML files..."
rm -f index.php
rm -f index2.html
rm -f index3.html
echo "Cleaning saved locations directory..."
if [ -d "saved_locations" ]; then
rm -f saved_locations/*
fi
echo "Removing other temporary files..."
rm -f LocationLog.log
rm -f LocationError.log
rm -f Log.log
echo "Cleanup completed successfully!"