Trac: Emptying a Wiki Database
A quick bit of shell magic to empty a Trac wiki database in a freshly installed Trac environment.
In this example /var/www/html/trac is assumed to be the Trac environment you created with trac-admin.
$ for page in `trac-admin /var/www/html/trac wiki list | cut -d' ' -f1 | grep "^[A-Z]" | grep -v "Title"`; do trac-admin /var/www/html/trac wiki remove $page; done;
;)
$ subscribe --newsletter
Practical AI engineering, in your inbox
Field notes for technical leaders building agents, evaluation systems, governance, and production infrastructure.
Related
A brief history of Red Hat, Fedora and CentOS
Confused by Red Hat's Linux ecosystem? Learn how RHEL, Fedora, and CentOS evolved from one distribution into three distinct solutions for different needs.
Patch to mod_evasive to Enhance Reporting Capabilities
Enhance Apache's mod_evasive security module with detailed environment variable reporting similar to mod_security for better attack analysis
The Agent Timed Out. Did the Action Happen?
A decision table for retrying agent actions when the response is lost, with stable intent, provider-specific idempotency and an explicit unknown outcome.