trac noob question - deleting/removing an existing trac environment

21 views
Skip to first unread message

gar...@heavy-iron.com

unread,
Mar 26, 2012, 7:20:31 PM3/26/12
to Trac Users
Say I have a landing page which lists 3 separate trac environments for
3 projects. Say one got dropped before it even started.

Is getting rid of the link/environment as easy as just physically
removing the environment and it's db?

just delete /var/lib/trac/what_I_want_to_delete?

I am unsure if there is some trac foo I would have to do somewhere
else...

Thanks for any help I can get.

Aaron Laws

unread,
Mar 27, 2012, 10:00:13 AM3/27/12
to trac-...@googlegroups.com
> -----Original Message-----
> From: trac-...@googlegroups.com [mailto:trac-...@googlegroups.com]
> On Behalf Of gar...@heavy-iron.com
> Sent: Monday, March 26, 2012 7:21 PM
> To: Trac Users
> Subject: [Trac] trac noob question - deleting/removing an existing trac
> environment
>
> Is getting rid of the link/environment as easy as just physically
> removing the environment and it's db?


I'm a newbie as well. I run trac using the standalone server, tracd, and have never done anything else, so my knowledge comes from that experience. You have to change the way trac is spawned. http://trac.edgewall.org/wiki/TracStandalone documents my experience well. The syntax synopsis is at #Reference:
Tracd [options] [projenv1 [projenv2 ...]]
(I added some flair to it.) There's also a -e option that will serve every project in a directory. If you're using -e, then simply deleting the project directory (and a restart) is sufficient. If you're explicitly enumerating the project environments, you'll need to remove the project environment from the command line of trac.

If you're running behind a web server, sorry for wasting your time. :)

Welcome, and enjoy trac!

Cooke, Mark

unread,
Mar 27, 2012, 10:06:42 AM3/27/12
to trac-...@googlegroups.com
> -----Original Message-----
> From: trac-...@googlegroups.com On Behalf Of
> gar...@heavy-iron.com
> Sent: 27 March 2012 00:21
> To: Trac Users
> Subject: [Trac] trac noob question - deleting/removing an
> existing trac environment
>
"It Depends"

Which backend are you using? As a self confessed "noob" then I assume you probably went with the default SQLite database. As this is stored in a subdirectory of the environment (e.g. /var/lib/trac/what_I_want_to_delete/db) then, yes, you remove the "project" by deleting the folder... If you used a different database backend, then removing the folder will not remove the data from the database, you will need to use your admin tools for that (e.g. pg-admin for PostgreSQL).

I also assume that you are using the "parent path" option of listing all folders under one root as projects. If not, you will (as Aaron) says, also need to update the command / configuration used to host your tracs.

Regards,

~ mark c

Reply all
Reply to author
Forward
0 new messages