def remove_bucket_owner(bucket_name, user_email):
 storage_client = storage.Client()
 bucket = storage_client.bucket(bucket_name)
 bucket.acl.reload()
 bucket.acl.user(user_email).revoke_read()
 bucket.acl.user(user_email).revoke_write()
 bucket.acl.user(user_email).revoke_owner()
 bucket.acl.save()
 print 'Removed user {} from bucket {}.'.format(user_email, bucket_name)

def remove_bucket_owner ( bucket_name , user_email ) : storage_client = storage . Client ( ) bucket = storage_client . bucket ( bucket_name ) bucket . acl . reload ( ) bucket . acl . user ( user_email ) . revoke_read ( ) bucket . acl . user ( user_email ) . revoke_write ( ) bucket . acl . user ( user_email ) . revoke_owner ( ) bucket . acl . save ( ) print 'Removed user {} from bucket {}.' . format ( user_email , bucket_name )
removes a user from the access control list of the given bucket .