I've got an org file that looks like this:
* Project Cats
** Get them
*** TODO Find a tabby
*** DONE Find one that's orange
CLOSED: [2016-11-08 Tue 15:32]
** Feed them
*** DONE Buy some food
CLOSED: [2016-11-08 Tue 15:32]
*** TODO Put it in bowls
Is there a command that, with my cursor on the top headline, will archive everything marked as DONE that's a descendant? After running such a command, I'd expect to see this:
* Project Cats
** Get them
*** TODO Find a tabby
** Feed them
*** TODO Put it in bowls
org-archive-subtree
states the options that are presently available --M-x describe-function RET org-archive-subtree RET
In particular, read about the prefix argument and see if that achieves the desired result.org-archive-subtree
will examine only the direct children of the headline, and they will archive a child only if all tasks it contains are done. (Or all timestamps are in the past.) I want to examine anything that's a descendant of the headline, and I want to archive individual items marked as done.