:doc:`EC2 <../../ec2>` / Client / delete_instance_event_window

****************************
delete_instance_event_window
****************************



.. py:method:: EC2.Client.delete_instance_event_window(**kwargs)

  

  Deletes the specified event window.

   

  For more information, see `Define event windows for scheduled events <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/event-windows.html>`__ in the *Amazon EC2 User Guide*.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteInstanceEventWindow>`_  


  **Request Syntax**
  ::

    response = client.delete_instance_event_window(
        DryRun=True|False,
        ForceDelete=True|False,
        InstanceEventWindowId='string'
    )
    
  :type DryRun: boolean
  :param DryRun: 

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is ``DryRunOperation``. Otherwise, it is ``UnauthorizedOperation``.

    

  
  :type ForceDelete: boolean
  :param ForceDelete: 

    Specify ``true`` to force delete the event window. Use the force delete parameter if the event window is currently associated with targets.

    

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

    The ID of the event window.

    

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

    
    ::

      {
          'InstanceEventWindowState': {
              'InstanceEventWindowId': 'string',
              'State': 'creating'|'deleting'|'active'|'deleted'
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **InstanceEventWindowState** *(dict) --* 

        The state of the event window.

        
        

        - **InstanceEventWindowId** *(string) --* 

          The ID of the event window.

          
        

        - **State** *(string) --* 

          The current state of the event window.

          
    
  