Reset Netalertx Database
DevOps & Securityreset-netalertx-databaseReset Netalertx Database is an Agent Skill for devops & security published in the netalertx/NetAlertX repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Wipe and regenerate the NetAlertX database and config. Use this when asked to reset database, wipe db, fresh database, clean slate, or start fresh.
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/netalertx/NetAlertX/blob/HEAD/.github/skills/database-reset/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/reset-netalertx-database, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Database Reset
Completely wipes devcontainer database and config, then regenerates from scratch.
Command
killall 'python3' || true
sleep 1
rm -rf /data/db/* /data/config/*
bash /entrypoint.d/15-first-run-config.sh
bash /entrypoint.d/20-first-run-db.sh
What This Does
- Kills backend to release database locks
- Deletes all files in
/data/db/and/data/config/ - Runs first-run config provisioning
- Runs first-run database initialization
After Reset
Run the startup script to restart services:
/workspaces/NetAlertX/.devcontainer/scripts/setup.sh
Database Location
- Runtime:
/data/db/app.db(SQLite) - Config:
/data/config/app.conf