Remove item older than 2 weeks

Posted by Simon on Super User See other posts from Super User or by Simon
Published on 2012-11-05T09:13:52Z Indexed on 2012/11/05 11:09 UTC
Read the original article Hit count: 176

Filed under:

I use emacs org-mode to manage work items. Every week, I manually remove all Done items older than 2 weeks. Is there an easy way to perform this automatically?

EDIT:

I am currently trying to add a new custom command like this:

(setq org-agenda-custom-commands
  '(("P" "Show old entries" todo "DONE"
     (
      (org-agenda-files '("c:/git/org/tickets.org"))
      (tags "CLOSED<=\"-2w\"")
     )
    ))
  )

The filter on the CLOSED timestamp is not working correctly.

© Super User or respective owner

Related posts about org-mode