public function deleteContainer($name) {
    $url = $this->url() . '/' . rawurlencode($name);

    try {
      $data = $this->req($url, 'DELETE', FALSE);
    }
    catch (\HPCloud\Transport\FileNotFoundException $e) {
      return FALSE;
    }
    // XXX: I'm not terribly sure about this. Why not just throw the
    // ConflictException?
    catch (\HPCloud\Transport\ConflictException $e) {
      throw new ObjectStorage\ContainerNotEmptyException("Non-empty container cannot be deleted.");
    }

    $status = $data->status();

    // 204 indicates that the container has been deleted.
    if ($status == 204) {
      return TRUE;
    }
    // OpenStacks documentation doesn't suggest any other return
    // codes.
    else {
      throw new \HPCloud\Exception('Server returned unexpected code: ' . $status);
    }
  }