Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

taskwarrior, delete old recurring tasks

Tags:

taskwarrior

How would I delete all recurring tasks in taskwarrior, which are completed, till some date?

I tried:

task Nevena until:07/29/2014 uuids

to get listed those that fall before that date, and collect their id's, so I could pipe them to delete command, but I did not get expected results.

like image 787
branquito Avatar asked Sep 05 '14 09:09

branquito


People also ask

How do I delete a recurring task in Salesforce?

Access the first occurrence of the recurring event that was created in Lightning Experience via the calendar or the Events list view. On the Event detail page, click on the Delete button. Click on the Delete All Following button.


1 Answers

I believe the answer is to delete the parent tasks and then the recurring tasks will no longer get created. You can show all parent tasks with task all +PARENT. For example:

$ task all +PARENT

ID St UUID     Age  Done Tags R Due        Until Description                                     
21 R  58e83c9b 1.7y           R 2018-04-01       replace upstairs air filter                     
20 R  f8b5b0db 1.7y       [1] R 2018-04-01       replace upstairs air filter

I somehow had two recurring tasks for the same thing. I can delete them:

$ task delete 21 
Delete task 21 'replace upstairs air filter'? (yes/no) yes
Deleting task 21 'replace upstairs air filter'.
Deleted 1 task.
$
$ task delete 20
Delete task 20 'replace upstairs air filter'? (yes/no) yes
Deleting task 20 'replace upstairs air filter'.
Deleted 1 task.

Now the recurring tasks shouldn't show up any longer.

like image 127
dustymabe Avatar answered Sep 17 '22 12:09

dustymabe