MCPcopy Create free account
hub / github.com/s3tools/s3cmd / website_delete

Method website_delete

S3/S3.py:597–608  ·  view source on GitHub ↗
(self, uri, bucket_location = None)

Source from the content-addressed store, hash-verified

595 return response
596
597 def website_delete(self, uri, bucket_location = None):
598 bucket = uri.bucket()
599
600 request = self.create_request("BUCKET_DELETE", bucket = bucket,
601 uri_params = {'website': None})
602 response = self.send_request(request)
603 debug("Received response '%s'" % (response))
604
605 if response['status'] != 204:
606 raise S3ResponseError("Expected status 204: %s" % response)
607
608 return response
609
610 def expiration_info(self, uri, bucket_location = None):
611 bucket = uri.bucket()

Callers

nothing calls this directly

Calls 4

create_requestMethod · 0.95
send_requestMethod · 0.95
S3ResponseErrorClass · 0.85
bucketMethod · 0.80

Tested by

no test coverage detected