trac-admin, delete attachment

518 views
Skip to first unread message

km

unread,
May 6, 2011, 6:21:20 AM5/6/11
to Trac Users
Hi all,

I'm trying to delete a attachment with trac-admin.
The trac-admin documentation says:

"attachment remove <realm:id> <name>"

My question is, what is the realm and the id?

Thanks,
Karl

Voelker, Bernhard

unread,
May 6, 2011, 8:33:38 AM5/6/11
to trac-...@googlegroups.com
Hi Karl,

not quite what you are searching for, but:
you can do that in your browser - unless you lack TICKET_ADMIN privs.

Have a nice day,
Berny

Hi all,

Thanks,
Karl

--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-...@googlegroups.com.
To unsubscribe from this group, send email to trac-users+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.

Remy Blank

unread,
May 6, 2011, 11:54:10 AM5/6/11
to trac-...@googlegroups.com
> My question is, what is the realm and the id?

The realm is the type of resource to which the attachment belongs, and
id is the name or identifier of the resource. So if you wanted to remove
the attachment named "MyFile.pdf" from the wiki page "WikiStart", you
would use:

trac-admin $ENV attachment remove wiki:WikiStart MyFile.pdf

Or for the same file attached to ticket #123:

trac-admin $ENV attachment remove ticket:123 MyFile.pdf

-- Remy

signature.asc

km

unread,
May 9, 2011, 11:05:10 AM5/9/11
to Trac Users
That was it, thanks Remy!

btw: did I missed this in the trac documentation/wiki?

Karl

Remy Blank schrieb:

Remy Blank

unread,
May 9, 2011, 2:04:31 PM5/9/11
to trac-...@googlegroups.com
km wrote:
> btw: did I missed this in the trac documentation/wiki?

No, you just caught us (me in particular) being lazy :)

If you can provide an updated help text for the "trac-admin attachment"
commands, I would gladly commit the change.

-- Remy

signature.asc
Reply all
Reply to author
Forward
0 new messages