/**
 * Delete HostingServicePriceDBO from database
 *
 * @param HostingServicePriceDBO $dbo HostingServicePriceDBO to delete
 */
function delete_HostingServicePriceDBO(HostingServicePriceDBO $dbo)
{
    $DB = DBConnection::getDBConnection();
    // Build DELETE query
    $sql = $DB->build_delete_sql("hostingserviceprice", sprintf("serviceid=%d AND type='%s' AND termlength=%d", $dbo->getServiceID(), $dbo->getType(), $dbo->getTermLength()));
    // Run query
    if (!mysql_query($sql, $DB->handle())) {
        throw new DBException(mysql_error($DB->handle()));
    }
}