Files
drone-detector/clear_database.sh
2025-08-17 09:21:05 +02:00

13 lines
299 B
Bash

#!/bin/bash
# Clear database via API calls (if we add the endpoint)
API_BASE="http://selfservice.cqers.com/drones/api"
echo "🗑️ Clearing database via API..."
# Clear detections
curl -X DELETE "$API_BASE/detections/clear" \
-H "Content-Type: application/json"
echo "✅ Database cleared"