My Octopress Blog

A blogging framework for hackers.

Delete All Tasks in a Wunderlist

I’ve been experimenting with a CulturedCode Things -> Wunderlist import tool, and it’s resulted in a few mix ups that left hundreds of items not where I wanted them. Instead of being filed in their own list, they are sitting in the inbox. Because it’s the inbox, I can’t just delete the list. To delete them all, I would have to click on each one and confirm the prompt. Kind of a pain in the butt.

Now, Wunderlist doesn’t have an API, but what they do have is a web based version of the tool. So, I figured that I could inspect their code and then write some JavaScript to do the deletion for me. Turns out I was right.

Here is the code I came up with. In order to use it, I’ve turned it into a bookmarklet. Just drag the following link up to your Bookmarks bar in the browser. When you open up a list in Wunderlist and click on the bookmarklet, it will confirm that you want to proceed before removing all of the items.

Delete All Wunderlist Items in a List

If you’re curious about the actual code, you can check it out in this gist: Delete all wunderlist items in a list.

If you have any questions, just let me know. :)