class_docstr: An artifact backend for Boto3.
  
  Args:
      bucket_name:
          The name of the bucket to store artifacts.
  
      client:
          A Boto3 client to use for storage operations. If not specified, a new client will
          be created.
  
      avoid_buf_copy:
          If True, skip procedure to copy the content of the source file object to a buffer
          before uploading it to S3 ins. This is default to False because using upload_fileobj()
          method of Boto3 client might close the source file object.
  
  Example:
      .. code-block:: python
  
          import optuna
          from optuna.artifacts import upload_artifact
          from optuna.artifacts import Boto3ArtifactStore
  
  
          artifact_store = Boto3ArtifactStore("my-bucket")
  
  
          def objective(trial: optuna.Trial) -> float:
              ... = trial.suggest_float("x", -10, 10)
              file_path = generate_example(...)
              upload_artifact(trial, file_path, artifact_store)
              return ...
class_docstr_tok: ["An","artifact","backend","for","Boto3",".","Args",":","bucket_name",":","The","name","of","the","bucket","to","store","artifacts",".","client",":","A","Boto3","client","to","use","for","storage","operations",".","If","not","specified",",","a","new","client","will","be","created",".","avoid_buf_copy",":","If","True",",","skip","procedure","to","copy","the","content","of","the","source","file","object","to","a","buffer","before","uploading","it","to","S3","ins",".","This","is","default","to","False","because","using","upload_fileobj","(",")","method","of","Boto3","client","might","close","the","source","file","object",".","Example",":","..","code-block",":",":","python","import","optuna","from","optuna.artifacts","import","upload_artifact","from","optuna.artifacts","import","Boto3ArtifactStore","artifact_store","=","Boto3ArtifactStore","(","``","my-bucket","''",")","def","objective","(","trial",":","optuna.Trial",")","-",">","float",":","...","=","trial.suggest_float","(","``","x","''",",","-10",",","10",")","file_path","=","generate_example","(","...",")","upload_artifact","(","trial",",","file_path",",","artifact_store",")","return","..."]
code: def remove(self, artifact_id: str) -> None:
      self.client.delete_object(Bucket=self.bucket, Key=artifact_id)
  
file_path: optuna/optuna/artifacts/_boto3.py
imports: from __future__ import annotations
  import io
  import shutil
  from typing import TYPE_CHECKING
  from optuna._experimental import experimental_class
  from optuna._imports import try_import
  from optuna.artifacts.exceptions import ArtifactNotFound
label_desc: Use image node_id 4 for calling the Boto3ArtifactStore obj's underlying member method code with example usage: obj.remove(artifact_id) without return types