:doc:`Appflow <../../appflow>` / Client / delete_flow

***********
delete_flow
***********



.. py:method:: Appflow.Client.delete_flow(**kwargs)

  

  Enables your application to delete an existing flow. Before deleting the flow, Amazon AppFlow validates the request by checking the flow configuration and status. You can delete flows one at a time.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DeleteFlow>`_  


  **Request Syntax**
  ::

    response = client.delete_flow(
        flowName='string',
        forceDelete=True|False
    )
    
  :type flowName: string
  :param flowName: **[REQUIRED]** 

    The specified name of the flow. Spaces are not allowed. Use underscores (_) or hyphens (-) only.

    

  
  :type forceDelete: boolean
  :param forceDelete: 

    Indicates whether Amazon AppFlow should delete the flow, even if it is currently in use.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`Appflow.Client.exceptions.ResourceNotFoundException`

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

  
  *   :py:class:`Appflow.Client.exceptions.InternalServerException`

  