def deleteRelationship(self, tab_foreign_name, rel_name):
        """
        Delete relationship by relationship name.
        Need name of "foreign" table.
        http://msdn2.microsoft.com/en-us/library/aa164927(office.10).aspx
        """
        if tab_foreign_name not in self.getTableNames():
            raise Exception, "Table \"%s\" is not in this database" % \
                tab_foreign_name
        cat = win32com.client.Dispatch(r'ADOX.Catalog')
        cat.ActiveConnection = self.connAccess
        tbl_foreign = cat.Tables(tab_foreign_name)
        tbl_keys = [x.Name for x in tbl_foreign.Keys]
        if rel_name not in tbl_keys:
            raise Exception, "\"%s\" is not in " % rel_name + \
                "relationships for table \"%s\"" % tab_foreign_name
        tbl_foreign.Keys.Delete(rel_name)
        tbl_foreign = None
        cat = None

        Delete relationship by relationship name.
        Need name of "foreign" table.
        http://msdn2.microsoft.com/en-us/library/aa164927(office.10).aspx
        
recipes/Python/528868_Extractimanipulaticlass_Microsoft/recipe-528868.py