There's a command line utility called pdisk that can do this. I was going to use it once, just to get back space from an old YDL partition that I decided not to use anymore, but after I backed everything up just incase, I decided to save myself the trouble of learning the commands for pdisk and just reinstalled OS X.