MCPcopy Index your code
hub / github.com/aws/aws-cli / _main

Method _main

awscli/s3transfer/delete.py:56–71  ·  view source on GitHub ↗

:param client: The S3 client to use when calling DeleteObject :type bucket: str :param bucket: The name of the bucket. :type key: str :param key: The name of the object to delete. :type extra_args: dict :param extra_args: Extra arguments t

(self, client, bucket, key, extra_args)

Source from the content-addressed store, hash-verified

54
55class DeleteObjectTask(Task):
56 def _main(self, client, bucket, key, extra_args):
57 """
58
59 :param client: The S3 client to use when calling DeleteObject
60
61 :type bucket: str
62 :param bucket: The name of the bucket.
63
64 :type key: str
65 :param key: The name of the object to delete.
66
67 :type extra_args: dict
68 :param extra_args: Extra arguments to pass to the DeleteObject call.
69
70 """
71 client.delete_object(Bucket=bucket, Key=key, **extra_args)

Callers

nothing calls this directly

Calls 1

delete_objectMethod · 0.45

Tested by

no test coverage detected