Hello,
is there a way to clean, delete all the wiki pages so i can have a clean index, with only the pages i have created ?
Hello,
is there a way to clean, delete all the wiki pages so i can have a clean index, with only the pages i have created ?
You can hack around trac-admin like this:
#!/bin/sh
# extract the page list from trac (this filter matches only CamelCase words or numbers,
# it will blow if there are pages which does not fit into this scheme)
for site in `trac-admin /path/to/trac wiki list | sed -e 's/\([a-zA-Z0-9]*\).*/\1/'`
do
# and remove every single page
trac-admin /path/to/trac wiki remove $site
done