todotxt / todo.txt-cli

☑️ A simple and extensible shell script for managing your todo.txt file.
http://todotxt.org
GNU General Public License v3.0
5.56k stars 713 forks source link

How to delete completed tasks? #305

Closed ShaneTian closed 4 years ago

ShaneTian commented 4 years ago

When I use todo.sh lsa, the screen always displays DONE: 0 of 3 tasks shown. Is there any command to clear the completed work?

Which versions todo.sh are you using?

TODO.TXT Command Line Interface v2.11.0

Which Operating System are you using?

macOS Catalina 10.15.4

Which version of bash are you using?

zsh 5.7.1 (x86_64-apple-darwin19.0)

inkarkat commented 4 years ago

done.txt is meant to be the long-term archive of tasks that have been done. If you don't need them any longer, just backup / delete that file; it will be re-created on the next todo.sh archive run.

$ rm ~/todo/done.txt