:doc:`ChimeSDKMessaging <../../chime-sdk-messaging>` / Client / disassociate_channel_flow

*************************
disassociate_channel_flow
*************************



.. py:method:: ChimeSDKMessaging.Client.disassociate_channel_flow(**kwargs)

  

  Disassociates a channel flow from all its channels. Once disassociated, all messages to that channel stop going through the channel flow processor.

   

  .. note::

    

    Only administrators or channel moderators can disassociate a channel flow.

     

    The ``x-amz-chime-bearer`` request header is mandatory. Use the ARN of the ``AppInstanceUser`` or ``AppInstanceBot`` that makes the API call as the value in the header.

    

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-messaging-2021-05-15/DisassociateChannelFlow>`_  


  **Request Syntax**
  ::

    response = client.disassociate_channel_flow(
        ChannelArn='string',
        ChannelFlowArn='string',
        ChimeBearer='string'
    )
    
  :type ChannelArn: string
  :param ChannelArn: **[REQUIRED]** 

    The ARN of the channel.

    

  
  :type ChannelFlowArn: string
  :param ChannelFlowArn: **[REQUIRED]** 

    The ARN of the channel flow.

    

  
  :type ChimeBearer: string
  :param ChimeBearer: **[REQUIRED]** 

    The ``AppInstanceUserArn`` of the user making the API call.

    

  
  
  :returns: None
  **Exceptions**
  
  *   :py:class:`ChimeSDKMessaging.Client.exceptions.BadRequestException`

  
  *   :py:class:`ChimeSDKMessaging.Client.exceptions.ForbiddenException`

  
  *   :py:class:`ChimeSDKMessaging.Client.exceptions.NotFoundException`

  
  *   :py:class:`ChimeSDKMessaging.Client.exceptions.UnauthorizedClientException`

  
  *   :py:class:`ChimeSDKMessaging.Client.exceptions.ConflictException`

  
  *   :py:class:`ChimeSDKMessaging.Client.exceptions.ThrottledClientException`

  
  *   :py:class:`ChimeSDKMessaging.Client.exceptions.ServiceUnavailableException`

  
  *   :py:class:`ChimeSDKMessaging.Client.exceptions.ServiceFailureException`

  