deletion of task has no effect
haegar33 opened this issue · 2 comments
haegar33 commented
Bug description
using the api.delete_task() function reports success but task are still present
Expected behaviour
when executing the api.delete_task() twice I would expect an error for the second call as task should be already deleted
Is reproducible
Yes
To reproduce
Code Snipplet:
from todoist_api_python.api import TodoistAPI
api = TodoistAPI(key)
I receive a list of completed task via the REST API as this does not work with the python module. I get a python dict clist, then:
for c in clist:
print('Delete item: ',c['content'],c['task_id'])
try:
is_success = api.delete_task(task_id=c['task_id'])
print(is_success)
except Exception as error:
print(error)
works fine, but when I run the script a second time all "deleted" tasks are back again
Version information:
- Package version: 8.1.3
- Python version: 3.10
Additional information
haegar33 commented
actually the problem is not for the python module but for all API calls! Whether using the Sync V9 or REST V2 API it is not possible to delete tasks. Looks like this intentional by the company to preserve your data for commercial reasons?