MCPcopy Create free account
hub / github.com/aws/aws-cli / DeleteObjectTask

Class DeleteObjectTask

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

Source from the content-addressed store, hash-verified

53
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 1

_submitMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected