๐งน Uninstalling the Ayzal AI Agentic SOC Agent
Complete removal steps for all operating systems. This removes the agent, its services, logs, and quarantine directory.
๐ข Linux
# Stop all agent services
sudo systemctl stop soc-agent soc-metrics-monitor soc-process-monitor soc-threat-intel.timer
# Disable services
sudo systemctl disable soc-agent soc-metrics-monitor soc-process-monitor soc-threat-intel.timer
# Remove service files
sudo rm -f /etc/systemd/system/soc-agent.service
sudo rm -f /etc/systemd/system/soc-metrics-monitor.service
sudo rm -f /etc/systemd/system/soc-process-monitor.service
sudo rm -f /etc/systemd/system/soc-threat-intel.service
sudo rm -f /etc/systemd/system/soc-threat-intel.timer
# Reload systemd
sudo systemctl daemon-reload
# Remove agent directory
sudo rm -rf /opt/agentic-soc-agent
# Remove quarantine directory
sudo rm -rf /quarantine
# Clean iptables rules added by agent (optional)
sudo iptables -L INPUT -n | grep -E "soc-agent|auto-blocked" | awk '{print $4}' | while read ip; do
sudo iptables -D INPUT -s $ip -j DROP 2>/dev/null
done
echo "โ
Agent uninstalled"
๐ macOS
# Unload launch agents
launchctl unload ~/Library/LaunchAgents/com.agentic-soc.agent.plist 2>/dev/null
launchctl unload ~/Library/LaunchAgents/com.agentic-soc.monitor.plist 2>/dev/null
launchctl unload ~/Library/LaunchAgents/com.agentic-soc.process.plist 2>/dev/null
# Remove plist files
rm -f ~/Library/LaunchAgents/com.agentic-soc.*.plist
# Remove agent directory
sudo rm -rf /opt/agentic-soc-agent
# Remove quarantine directory
sudo rm -rf /quarantine
echo "โ
Agent uninstalled"
๐ช Windows
# Run PowerShell as Administrator
# Stop and remove scheduled tasks
Unregister-ScheduledTask -TaskName "AgenticSOC-Agent" -Confirm:$false -ErrorAction SilentlyContinue
Unregister-ScheduledTask -TaskName "AgenticSOC-Metrics" -Confirm:$false -ErrorAction SilentlyContinue
Unregister-ScheduledTask -TaskName "AgenticSOC-Process" -Confirm:$false -ErrorAction SilentlyContinue
# Remove agent directory
Remove-Item -Path "C:\ProgramData\AgenticSOC" -Recurse -Force -ErrorAction SilentlyContinue
Write-Host "โ
Agent uninstalled"
๐งน Clean Up Platform Account (Optional)
After uninstalling the agent, remove the API key from the platform to stop receiving alerts:
- Go to Settings โ API Keys
- Find the key used by this agent
- Click Delete next to the key
Or ask your admin to delete the agent from Admin โ Agent Management โ Delete.
โ ๏ธ Important Notes
- Uninstalling the agent does not delete your platform account or historical alerts
- Blocked IPs in iptables/firewall remain until manually removed or server reboot
- Quarantined files in
/quarantineare deleted when the directory is removed - To reinstall later:
Get the command from your Dashboard > Settings > API Key