I want to delete a branch both locally and remotely.
$ git branch -d
Since January 2013, GitHub included a Delete branch button next to each branch in your "Branches" page.
Relevant blog post: Create and delete branches