Hi Frank
You could use the "trac-admin" command to clean up your Trac instance.
For the an overview of the help :
trac-admin path/to/trac help
For the wiki part, you can combine "wiki list" and "wiki remove <page>"
using something like (assuming it's on Linux):
trac-admin path/to/trac wiki list | cut -d ' ' -f1 | while read wikipage;
do trac-admin path/to/trac wiki remove $wikipage; done
This will also remove Trac integrated help pages. You should be able to
reinstall them with:
trac-admin path/to/trac wiki upgrade
For the tickets it seems there isn't any command to list them. As they are
identified by numbers, you can just check the highest number and generate a
list:
seq HIGHESTNUMBER | while read ticketnum; do trac-admin path/to/trac ticket
remove $ticketnum; done
If some tickets have already been removed, you will probably have error
messages.
As usual, before starting these destructive actions, please make a backup
of your database and Trac instance !
Best regards
Mickaël Bucas
Le ven. 23 juin 2023 à 10:35, Markus Rosjat <markus.rosjat@gmail.com> a
écrit :
> Hi Frank,
>
> well setting up a "fresh" trac shouldnt be more like taking a project and
> simply assign a fresh DB to it. then Trac should tell you to update the DB
> with trac admin and you should be good to go. Beside that you can simply
> try to empty tables in the database but i don't know if this is a practical
> way of doing things.
>
> Cheers
>
> MArkus
>
> Am Fr., 23. Juni 2023 um 10:30 Uhr schrieb Frank R. <
> frank.reifenstahl@gmail.com>:
>
>> I would like to go to zero with my now updated trac, i.e. remove any
>> content (wiki and tickets). Is there an easy way to do? btw, no, I don't
>> want to setup trac from scratch, because I don't want to go through all
>> customizing steps of the past years.
>>
>> Regards
>> Frank
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Trac Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to trac-users+unsubscribe@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/trac-users/CA%2ByhgXCdY2FOsWvj62KCQsrSWsu8%3D0ebfih1Nys6x%3DmPE2z53g%40mail.gmail.com
>> <https://groups.google.com/d/msgid/trac-users/CA%2ByhgXCdY2FOsWvj62KCQsrSWsu8%3D0ebfih1Nys6x%3DmPE2z53g%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Trac Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to trac-users+unsubscribe@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/trac-users/CAJ4osOnwSDadaPFjGab96jM8knaiAwS74-jM4fpzux%3DkQkWwnw%40mail.gmail.com
> <https://groups.google.com/d/msgid/trac-users/CAJ4osOnwSDadaPFjGab96jM8knaiAwS74-jM4fpzux%3DkQkWwnw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/trac-users/CAG1%3DSYQQkNe_scK9e%3DurL0Nq3C%3DTs8WcsZ%3DQRr4HNMM%2BNP1CMA%40mail.gmail.com.