Archive completed tasks in Org mode
You might have a tasks.org file where all your todos and timekeeping is placed. After a while the file gets really big and thus you need to archive the old entries that are either completed or cancelled. Here are the commands (which I found from stackoverflow.com) to clean up your tasks file:
For achiving only one heading
- C-c C-x A
For archiving headings in bulk
- M-m o a t r (Open agenda view for the buffer)
- M-m o a (Opens Agenda)
- < (Narrows down to this buffer)
- t (Shows TODO entries)
- 2 r (Show all DONE entries)
- m (Mark for bulk action)
- B A (Bulk Archive)
- B (Bulk action on marked entries)
- A (Archive the entries)