code: async def delView(self, iden):
          '''
          Delete a cortex view by iden.
          '''
          if iden == self.iden:
              raise s_exc.SynErr(mesg='cannot delete the main view')
  
          view = self.views.pop(iden, None)
          if view is None:
              raise s_exc.NoSuchView(iden=iden)
  
          await self.hive.pop(('cortex', 'views', iden))
          await view.fini(ync def delView(self, iden):
          '''
          Delete a cortex view by iden.
          '''
          if iden == self.iden:
              raise s_exc.SynErr(mesg='cannot delete the main view')
  
          view = self.views.pop(iden, None)
          if view is None:
              raise s_exc.NoSuchView(iden=iden)
  
          await self.hive.pop(('cortex', 'views', iden))
          await view.fini()
docs: Delete a cortex view by iden.