code: def remove_access_key_permissions(self, access_key_id, permissions):
          
          # Get current state via HTTPS.
          current_access_key = self.get_access_key(access_key_id)
  
          # Copy and only change the single parameter.
          payload_dict = KeenApi._build_access_key_dict(current_access_key)
  
          # Turn into sets to avoid duplicates.
          old_permissions = set(payload_dict["permitted"])
          removal_permissions = set(permissions)
          reduced_permissions = old_permissions.difference(removal_permissions)
          payload_dict["permitted"] = list(reduced_permissions)
  
          # Now just treat it like a full update.
          return self.update_access_key_full(access_key_id, **payload_dict)
docs: Removes a list of permissions from the existing list of permissions.
          Will not remove all existing permissions unless all such permissions are included
          in this list. Not to be confused with key revocation.
  
          See also: revoke_access_key()
  
          :param access_key_id: the 'key' value of the access key to remove some permissions from
          :param permissions: the permissions you wish to remove from this access key