def empty(Bucket, MFA=None, RequestPayer=None, region=None, key=None, keyid=None, profile=None):
 stuff = list_object_versions(Bucket, region=region, key=key, keyid=keyid, profile=profile)
 Delete = {}
 Delete['Objects'] = [{'Key': v['Key'], 'VersionId': v['VersionId']} for v in stuff.get('Versions', [])]
 Delete['Objects'] += [{'Key': v['Key'], 'VersionId': v['VersionId']} for v in stuff.get('DeleteMarkers', [])]
 if len(Delete['Objects']):
  ret = delete_objects(Bucket, Delete, MFA=MFA, RequestPayer=RequestPayer, region=region, key=key, keyid=keyid, profile=profile)
  failed = ret.get('failed', [])
  if len(failed):
   return {'deleted': False, 'failed': ret[failed]}
 return {'deleted': True}

def empty ( Bucket , MFA = None , RequestPayer = None , region = None , key = None , keyid = None , profile = None ) : stuff = list_object_versions ( Bucket , region = region , key = key , keyid = keyid , profile = profile ) Delete = { } Delete [ 'Objects' ] = [ { 'Key' : v [ 'Key' ] , 'VersionId' : v [ 'VersionId' ] } for v in stuff . get ( 'Versions' , [ ] ) ] Delete [ 'Objects' ] += [ { 'Key' : v [ 'Key' ] , 'VersionId' : v [ 'VersionId' ] } for v in stuff . get ( 'DeleteMarkers' , [ ] ) ] if len ( Delete [ 'Objects' ] ) : ret = delete_objects ( Bucket , Delete , MFA = MFA , RequestPayer = RequestPayer , region = region , key = key , keyid = keyid , profile = profile ) failed = ret . get ( 'failed' , [ ] ) if len ( failed ) : return { 'deleted' : False , 'failed' : ret [ failed ] } return { 'deleted' : True }
creates and returns a new eigenmatrix with the given shape .