def delete_demo(exploration_id):
 if (not exp_domain.Exploration.is_demo_exploration_id(exploration_id)):
  raise Exception(('Invalid demo exploration id %s' % exploration_id))
 exploration = get_exploration_by_id(exploration_id, strict=False)
 if (not exploration):
  logging.info(('Exploration with id %s was not deleted, because it does not exist.' % exploration_id))
 else:
  delete_exploration(feconf.SYSTEM_COMMITTER_ID, exploration_id, force_deletion=True)

def delete_demo ( exploration_id ) : if ( not exp_domain . Exploration . is_demo_exploration_id ( exploration_id ) ) : raise Exception ( ( 'Invalid demo exploration id %s' % exploration_id ) ) exploration = get_exploration_by_id ( exploration_id , strict = False ) if ( not exploration ) : logging . info ( ( 'Exploration with id %s was not deleted, because it does not exist.' % exploration_id ) ) else : delete_exploration ( feconf . SYSTEM_COMMITTER_ID , exploration_id , force_deletion = True )
deletes a single demo exploration .