I found that it is possible to delete a comment using the getInternalComments method after casting a working copy of a work item to a WorkItem.
// Removes the first comment
((WorkItem)workingCopy).getInternalComments().remove(0);