original_docstring: 
      Delete fragments from an array located at uri that falls within a given
      timestamp_range.
  
      :param str uri: URI for the TileDB array (any supported TileDB URI)
      :param (int, int) timestamp_range: (default None) If not None, vacuum the
          array using the given range (inclusive)
      :param config: Override the context configuration. Defaults to ctx.config()
      :param ctx: (optional) TileDB Ctx
      :param verbose: (optional) Print fragments being deleted (default: False)
      :param dry_run: (optional) Preview fragments to be deleted without
          running (default: False)
      
docstring: Delete fragments from an array located at uri that falls within a given
  timestamp_range.
  
  
docstring_tokens: Delete fragments from an array located at uri that falls within a given timestamp_range .
code: def delete_fragments(
      uri, timestamp_range, config=None, ctx=None, verbose=False, dry_run=False
  ):
      """
      Delete fragments from an array located at uri that falls within a given
      timestamp_range.
  
      :param str uri: URI for the TileDB array (any supported TileDB URI)
      :param (int, int) timestamp_range: (default None) If not None, vacuum the
          array using the given range (inclusive)
      :param config: Override the context configuration. Defaults to ctx.config()
      :param ctx: (optional) TileDB Ctx
      :param verbose: (optional) Print fragments being deleted (default: False)
      :param dry_run: (optional) Preview fragments to be deleted without
          running (default: False)
      """
  
      if not isinstance(timestamp_range, tuple) and len(timestamp_range) != 2:
          raise TypeError(
              "'timestamp_range' argument expects tuple(start: int, end: int)"
          )
  
      if not ctx:
          ctx = tiledb.default_ctx()
  
      if config is None:
          config = tiledb.Config(ctx.config())
  
      vfs = tiledb.VFS(config=config, ctx=ctx)
  
      if verbose or dry_run:
          print("Deleting fragments:")
  
      for frag in tiledb.array_fragments(uri):
          if (
              timestamp_range[0] <= frag.timestamp_range[0]
              and frag.timestamp_range[1] <= timestamp_range[1]
          ):
              if verbose or dry_run:
                  print(f"\t{frag.uri}")
  
              if not dry_run:
                  vfs.remove_file(f"{frag.uri}.ok")
                  vfs.remove_dir(frag.uri)
code_tokens: def delete_fragments ( uri , timestamp_range , config = None , ctx = None , verbose = False , dry_run = False ) : if not isinstance ( timestamp_range , tuple ) and len ( timestamp_range ) != 2 : raise TypeError ( "'timestamp_range' argument expects tuple(start: int, end: int)" ) if not ctx : ctx = tiledb . default_ctx ( ) if config is None : config = tiledb . Config ( ctx . config ( ) ) vfs = tiledb . VFS ( config = config , ctx = ctx ) if verbose or dry_run : print ( "Deleting fragments:" ) for frag in tiledb . array_fragments ( uri ) : if ( timestamp_range [ 0 ] <= frag . timestamp_range [ 0 ] and frag . timestamp_range [ 1 ] <= timestamp_range [ 1 ] ) : if verbose or dry_run : print ( f"\t{frag.uri}" ) if not dry_run : vfs . remove_file ( f"{frag.uri}.ok" ) vfs . remove_dir ( frag . uri )
short_docstring: Delete fragments from an array located at uri that falls within a given
  timestamp_range.
short_docstring_tokens: Delete fragments from an array located at uri that falls within a given timestamp_range .
comment: """
      Delete fragments from an array located at uri that falls within a given
      timestamp_range.
  
      :param str uri: URI for the TileDB array (any supported TileDB URI)
      :param (int, int) timestamp_range: (default None) If not None, vacuum the
          array using the given range (inclusive)
      :param config: Override the context configuration. Defaults to ctx.config()
      :param ctx: (optional) TileDB Ctx
      :param verbose: (optional) Print fragments being deleted (default: False)
      :param dry_run: (optional) Preview fragments to be deleted without
          running (default: False)
      """