:doc:`CloudTrail <../../cloudtrail>` / Client / delete_event_data_store

***********************
delete_event_data_store
***********************



.. py:method:: CloudTrail.Client.delete_event_data_store(**kwargs)

  

  Disables the event data store specified by ``EventDataStore``, which accepts an event data store ARN. After you run ``DeleteEventDataStore``, the event data store enters a ``PENDING_DELETION`` state, and is automatically deleted after a wait period of seven days. ``TerminationProtectionEnabled`` must be set to ``False`` on the event data store and the ``FederationStatus`` must be ``DISABLED``. You cannot delete an event data store if ``TerminationProtectionEnabled`` is ``True`` or the ``FederationStatus`` is ``ENABLED``.

   

  After you run ``DeleteEventDataStore`` on an event data store, you cannot run ``ListQueries``, ``DescribeQuery``, or ``GetQueryResults`` on queries that are using an event data store in a ``PENDING_DELETION`` state. An event data store in the ``PENDING_DELETION`` state does not incur costs.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/DeleteEventDataStore>`_  


  **Request Syntax**
  ::

    response = client.delete_event_data_store(
        EventDataStore='string'
    )
    
  :type EventDataStore: string
  :param EventDataStore: **[REQUIRED]** 

    The ARN (or the ID suffix of the ARN) of the event data store to delete.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`CloudTrail.Client.exceptions.EventDataStoreARNInvalidException`

  
  *   :py:class:`CloudTrail.Client.exceptions.EventDataStoreNotFoundException`

  
  *   :py:class:`CloudTrail.Client.exceptions.EventDataStoreTerminationProtectedException`

  
  *   :py:class:`CloudTrail.Client.exceptions.EventDataStoreHasOngoingImportException`

  
  *   :py:class:`CloudTrail.Client.exceptions.InactiveEventDataStoreException`

  
  *   :py:class:`CloudTrail.Client.exceptions.InvalidParameterException`

  
  *   :py:class:`CloudTrail.Client.exceptions.OperationNotPermittedException`

  
  *   :py:class:`CloudTrail.Client.exceptions.UnsupportedOperationException`

  
  *   :py:class:`CloudTrail.Client.exceptions.NotOrganizationMasterAccountException`

  
  *   :py:class:`CloudTrail.Client.exceptions.NoManagementAccountSLRExistsException`

  
  *   :py:class:`CloudTrail.Client.exceptions.ChannelExistsForEDSException`

  
  *   :py:class:`CloudTrail.Client.exceptions.InsufficientDependencyServiceAccessPermissionException`

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

  
  *   :py:class:`CloudTrail.Client.exceptions.EventDataStoreFederationEnabledException`

  