def DeleteObject(args: 'argparse.Namespace') -> None:
  """Deletes an object in GCS.

  Args:
    args (argparse.Namespace): Arguments from ArgumentParser.

  Raises:
    AttributeError: If no project_id was provided and none was inferred
        from the gcloud environment.
  """

  AssignProjectID(args)

  gcs = gcp_storage.GoogleCloudStorage(args.project)
  gcs.DeleteObject(args.path)

  print('Object deleted.')
Deletes an object in GCS.

Args:
args (argparse.Namespace): Arguments from ArgumentParser.

Raises:
AttributeError: If no project_id was provided and none was inferred
from the gcloud environment.
tools/gcp_cli.py