Want to delete your entire to-do list and start over from zero? This NodeJS script uses the Todoist API's JavaScript SDK to delete all your active tasks and give you a fresh start.
-
Clone this repository to your machine or open it on GitHub Codespaces.
-
Create a
.env
file and add your Todoist API Token, like this:TODOIST_API_TOKEN=xxxxxxxxxxxxxxxxxxxxx
-
Run the script in the terminal with
node .
Before deleting, the script saves a timestamped JSON file backup of all your Todoist tasks in ./backups
. You can also create your own backup at Settings/Backups in the Todoist web app.
To restore all tasks from one of the JSON backup files in ./backup
, in the terminal run node restore.js THE_FILENAME
. Unfortunately, task recurrence rules are lost, but the due dates should be restored.