Demonstrate how to delete a particular key or keys from an S3 bucket using boto3
<p>This <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> allows for deletion of a list of keys from an S3 bucket.  Please could you demonstrate an example of how to use it with:</p>

<ol>
<li>a single key to be deleted.</li>
<li>a list of multiple keys to be deleted.</li>
</ol>

<p>With thanks.</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>