<p>这个<a href="https://boto3.readthedocs.io/en/latest/reference/services/s3.html?highlight=objects%20delete#S3.Bucket.delete_objects" rel="nofollow" title="function">boto3 function</a>允许从S3存储桶中删除一个密钥列表。请举例说明如何使用它:</p>
<ol>
<li>要删除的单个密钥。在</li>
<li>要删除的多个键的列表。在</li>
</ol>
<p>谢谢你。在</p>
<pre><code>delete_objects(**kwargs)
This operation enables you to delete multiple objects from a bucket using a single HTTP request. You may specify up to 1000 keys.
Request Syntax
response = bucket.delete_objects(
Delete={
'Objects': [
{
'Key': 'string',
'VersionId': 'string'
},
],
'Quiet': True|False
},
MFA='string',
RequestPayer='requester'
)
</code></pre>