I was recently working on an API integration between Shopify & Basecamp and found myself with a large number of projects in Basecamp that I had to remove. From what I could tell, the Basecamp API doesn’t have a way to delete projects (at least it’s not documented) and there’s no bulk delete functionality in the existing UI so I was forced to figure out the easiest way to do this sans clicking and confirming delete for every project.
Upon closer inspection, the confirmation process that Basecamp has in place is interesting. They show a javascript confirmation box which POSTs to a url along the lines of /project_url/project/delete_project. This means running a simple GET request on the URL won’t successfully delete the project.
After playing around for a little while I came up with this simple JS snippet that I ran in my Console in Google Chrome. It embeds JQuery on the page, and loops through the project listing and POSTs to each projects respective delete url’s.
Bulk Project Delete from Basecamp
This snippet is very basic and will delete every project in your account so I wouldn’t recommend utilizing it in it’s current state. With some simple adjustments however, you could easily limit the projects that it deletes. I only wanted to delete specific projects that contained “Order #” in their title. To do so I made the following adjustment.
Bulk Project Delete from Basecamp With Filter
Both of these could obviously be simplified and run without JQuery but in an attempt to spend as little amount of time as possible getting this working I went with what I knew best. If anyone has a way to simplify this, I’d love to see it. From here, you could even go one step further and turn the snippet into a bookmarklet. That said, I’d have to imagine it’s unlikely that this is something anyone would be doing often.
So awesome! Way to step up Tumblr…and everyone who participated!
staff:
Yesterday we did a historic thing. We generated 87,834 phone calls to U.S. Representatives in a concerted effort to protect the Internet. Extraordinary. There’s no doubt that we’ve been heard.
So just to keep you updated: The well-intentioned, but immensely flawed “Stop Online Piracy Act” is still in the House Judiciary Committee. The hearing was yesterday and now members will debate and bring amendments to the bill. The Committee will reconvene in a few weeks — the date has yet to be scheduled. Nothing has been brought to a final vote. Everything is still very much in play. We’ll keep you posted on what’s going on and what you can do to help. But for now, we want to thank you.
One encouraging thing we heard yesterday:
I don’t believe this bill has any chance on the House floor. I think it’s way too extreme, it infringes on too many areas that our leadership will know is simply too dangerous to do in its current form.
— Representative Darrell Issa
We also want to express our tremendous gratitude to our friends at Mobile Commons who, on 30 minutes notice, hooked us up with their amazing platform (and provided their expertise) to automatically connect callers with their Representatives.
This kid is in the sixth grade and has a better public speaking presence then most adults - significantly better then myself! And he’s got apps in the app store :)
Kudos to him. I can only imagine where he ends up, and how he influences younger generations to embrace technology.
Looks like a cool little group.