OpenParable
Skip to content
← Back to skills

Reset Netalertx Database

DevOps & Security
reset-netalertx-database

Reset 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.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. 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

  1. Kills backend to release database locks
  2. Deletes all files in /data/db/ and /data/config/
  3. Runs first-run config provisioning
  4. 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