MCPcopy Create free account
hub / github.com/wal-e/wal-e / _clean

Function _clean

tests/s3_integration_help.py:49–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47 conn = cinfo.connect(creds)
48
49 def _clean():
50 bucket = conn.get_bucket(bucket_name)
51 bucket.delete_keys(key.name for key in bucket.list())
52
53 try:
54 conn.create_bucket(bucket_name, location=Location.USWest)

Callers 1

Calls 3

get_bucketMethod · 0.80
delete_keysMethod · 0.80
listMethod · 0.80

Tested by

no test coverage detected