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

Method delete

S3/CloudFront.py:756–763  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

754
755 @staticmethod
756 def delete(args):
757 cf = CloudFront(Config())
758 cfuris = Cmd._parse_args(args)
759 for cfuri in cfuris:
760 response = cf.DeleteDistribution(cfuri)
761 if response['status'] >= 400:
762 error("Distribution %s could not be deleted: %s" % (cfuri, response['reason']))
763 output("Distribution %s deleted" % cfuri)
764
765 @staticmethod
766 def modify(args):

Callers

nothing calls this directly

Calls 5

DeleteDistributionMethod · 0.95
ConfigClass · 0.90
CloudFrontClass · 0.85
outputFunction · 0.85
_parse_argsMethod · 0.80

Tested by

no test coverage detected