class_docstr: PerspectiveViewer wraps the `perspective.Table` API and exposes an API
  around creating views, loading data, and updating data.
class_docstr_tok: ["PerspectiveViewer","wraps","the","`","perspective.Table","`","API","and","exposes","an","API","around","creating","views",",","loading","data",",","and","updating","data","."]
docstr: Delete the Viewer's data and clears its internal state. If
  ``delete_table`` is True, the underlying `perspective.Table` and the
  internal `View` object will be deleted.
  
  Args:
      delete_table (:obj:`bool`) : whether the underlying `Table` will be
          deleted. Defaults to True.
docstr_tok: ["Delete","the","Viewer","'s","data","and","clears","its","internal","state",".","If","``","delete_table","``","is","True",",","the","underlying","`","perspective.Table","`","and","the","internal","`","View","`","object","will","be","deleted",".","Args",":","delete_table","(",":","obj",":","`","bool","`",")",":","whether","the","underlying","`","Table","`","will","be","deleted",".","Defaults","to","True","."]
code: def delete(self, delete_table=True):
      """Delete the Viewer's data and clears its internal state. If
      ``delete_table`` is True, the underlying `perspective.Table` and the
      internal `View` object will be deleted.
  
      Args:
          delete_table (:obj:`bool`) : whether the underlying `Table` will be
              deleted. Defaults to True.
      """
      if delete_table:
          # Delete all created views on the widget's manager instance
          for view in self.manager._views.values():
              view.delete()
  
          # Reset view cache
          self.manager._views = {}
  
          # Delete table
          self.table.delete()
          self.manager._tables.pop(self.table_name)
          self.table_name = None
  
      self.reset()
  
file_path: perspective/python/perspective/perspective/viewer/viewer.py
imports: from random import random
  from ..libpsp import is_libpsp
  from .validate import validate_aggregates, validate_split_by, validate_columns, validate_expressions, validate_filter, validate_plugin, validate_plugin_config, validate_group_by, validate_sort
  from .viewer_traitlets import PerspectiveTraitlets
label_desc: Use image node_id 10 for calling the PerspectiveViewer obj's underlying member method code with example usage: obj.delete(delete_table) without return types