def destroy_oaipmh_set(mapper, connection, community):
from invenio_oaiserver.models import OAISet<EOL>with db.session.begin_nested():<EOL><INDENT>oaiset = OAISet.query.filter_by(<EOL>spec=community.oaiset_spec).one_or_none()<EOL>if oaiset is None:<EOL><INDENT>raise Exception(<EOL>"<STR_LIT>".format(community.id))<EOL><DEDENT>db.session.delete(oaiset)<EOL><DEDENT>
Signal for creating OAI-PMH sets during community creation.