Skip to content

Instantly share code, notes, and snippets.

For https://stackoverflow.com/questions/76747790/%d0%90utomatic-deletion-files-from-s3:
Here's a sample Lambda function to do it:
```python
import boto3
BUCKET_NAME = 'my-bucket-name'
def lambda_handler(event, context):