def drop_view(self, viewname: str) -> int:
        """Drops a view."""
        sql = "DROP VIEW IF EXISTS {}".format(viewname)
        log.info("Dropping view " + viewname + " (ignore any warning here)")
        return self.db_exec_literal(sql)
Drops a view.