'Delete a catalog from database with given name.
Parameters
name : str
Primary key identifying the catalog.
Raises
MissingCatalog
If catalog is not found.'

def delete_catalog(self, name):

    if (name not in self._catalogs):
        raise MissingCatalog(u'{0}    not    found.'.format(name))
    self._url_keys[self._catalogs[name][u'url']].remove(name)
    del self._catalogs[name]
