class_docstr: A class representing a Checkpoint instance of a trained model.
  
  A Checkpoint object is usually obtained from
  :func:`determined.experimental.client.get_checkpoint`. This class provides helper functionality
  for downloading checkpoints to local storage and loading checkpoints into memory.
  
  The :class:`~determined.experimental.client.Trial` class contains methods
  that return instances of this class.
  
  Attributes:
      session: HTTP request session.
      uuid: UUID of checkpoint in storage.
      task_id: (Mutable, Optional[str]) ID of associated task.
      allocation_id: (Mutable, Optional[str]) ID of associated allocation.
      report_time: (Mutable, Optional[str]) Timestamp checkpoint reported.
      resources: (Mutable, Optional[Dict]) Dictionary of file paths to file sizes in bytes of
          all files in the checkpoint.
      metadata: (Mutable, Optional[Dict]) User-defined metadata associated with the checkpoint.
      state: (Mutable, Optional[CheckpointState]) State of the checkpoint.
      training: (Mutable, Optional[CheckpointTrainingMetadata]) Training-related metadata for
          the checkpoint.
  
      Note:
          All attributes are cached by default.
  
          Some attributes are mutable and may be changed by methods that update these values,
          either automatically (eg. :meth:`add_metadata()`) or explicitly with :meth:`reload()`.
class_docstr_tok: ["A","class","representing","a","Checkpoint","instance","of","a","trained","model",".","A","Checkpoint","object","is","usually","obtained","from",":","func",":","`","determined.experimental.client.get_checkpoint","`",".","This","class","provides","helper","functionality","for","downloading","checkpoints","to","local","storage","and","loading","checkpoints","into","memory",".","The",":","class",":","`","~determined.experimental.client.Trial","`","class","contains","methods","that","return","instances","of","this","class",".","Attributes",":","session",":","HTTP","request","session",".","uuid",":","UUID","of","checkpoint","in","storage",".","task_id",":","(","Mutable",",","Optional","[","str","]",")","ID","of","associated","task",".","allocation_id",":","(","Mutable",",","Optional","[","str","]",")","ID","of","associated","allocation",".","report_time",":","(","Mutable",",","Optional","[","str","]",")","Timestamp","checkpoint","reported",".","resources",":","(","Mutable",",","Optional","[","Dict","]",")","Dictionary","of","file","paths","to","file","sizes","in","bytes","of","all","files","in","the","checkpoint",".","metadata",":","(","Mutable",",","Optional","[","Dict","]",")","User-defined","metadata","associated","with","the","checkpoint",".","state",":","(","Mutable",",","Optional","[","CheckpointState","]",")","State","of","the","checkpoint",".","training",":","(","Mutable",",","Optional","[","CheckpointTrainingMetadata","]",")","Training-related","metadata","for","the","checkpoint",".","Note",":","All","attributes","are","cached","by","default",".","Some","attributes","are","mutable","and","may","be","changed","by","methods","that","update","these","values",",","either","automatically","(","eg",".",":","meth",":","`","add_metadata","(",")","`",")","or","explicitly","with",":","meth",":","`","reload","(",")","`","."]
docstr: Removes any files from the checkpoint in checkpoint storage that match one or more of
  the provided ``globs``. The checkpoint resources and state will be updated in master
  asynchronously to reflect checkpoint storage. If ``globs`` is the empty list then no
  files will be deleted and the resources and state will only be refreshed in master.
  
  Arguments:
      globs (List[string]): Globs to match checkpoint files against.
docstr_tok: ["Removes","any","files","from","the","checkpoint","in","checkpoint","storage","that","match","one","or","more","of","the","provided","``","globs","``",".","The","checkpoint","resources","and","state","will","be","updated","in","master","asynchronously","to","reflect","checkpoint","storage",".","If","``","globs","``","is","the","empty","list","then","no","files","will","be","deleted","and","the","resources","and","state","will","only","be","refreshed","in","master",".","Arguments",":","globs","(","List","[","string","]",")",":","Globs","to","match","checkpoint","files","against","."]
code: def remove_files(self, globs: List[str]) -> None:
      """
      Removes any files from the checkpoint in checkpoint storage that match one or more of
      the provided ``globs``. The checkpoint resources and state will be updated in master
      asynchronously to reflect checkpoint storage. If ``globs`` is the empty list then no
      files will be deleted and the resources and state will only be refreshed in master.
  
      Arguments:
          globs (List[string]): Globs to match checkpoint files against.
      """
      remove_body = bindings.v1CheckpointsRemoveFilesRequest(
          checkpointGlobs=globs,
          checkpointUuids=[self.uuid],
      )
      bindings.post_CheckpointsRemoveFiles(
          self._session, body=remove_body
      )
  
      if len(globs) == 0:
          logger.info(
              f"Refresh of checkpoint {self.uuid} is in progress."
          )
      else:
          logger.info(
              f"Partial deletion of checkpoint {self.uuid} is in progress."
          )
  
imports: import dataclasses
  import enum
  import json
  import logging
  import pathlib
  import shutil
  import sys
  import tarfile
  import warnings
  from typing import Any, Dict, Iterable, List, Optional
  from determined import errors
  from determined.common import api, constants, storage
  from determined.common.api import bindings
  from determined.common.experimental import metrics
  from determined.common.storage import shared
label_desc: Use image node_id 13 for calling the Checkpoint obj's underlying member method code with example usage: obj.remove_files(globs) without return types