:doc:`LocationService <../../location>` / Client / batch_delete_device_position_history

************************************
batch_delete_device_position_history
************************************



.. py:method:: LocationService.Client.batch_delete_device_position_history(**kwargs)

  

  Deletes the position history of one or more devices from a tracker resource.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/BatchDeleteDevicePositionHistory>`_  


  **Request Syntax**
  ::

    response = client.batch_delete_device_position_history(
        TrackerName='string',
        DeviceIds=[
            'string',
        ]
    )
    
  :type TrackerName: string
  :param TrackerName: **[REQUIRED]** 

    The name of the tracker resource to delete the device position history from.

    

  
  :type DeviceIds: list
  :param DeviceIds: **[REQUIRED]** 

    Devices whose position history you want to delete.

     

    
    * For example, for two devices: ``“DeviceIds” : [DeviceId1,DeviceId2]``
    

    

  
    - *(string) --* 

    

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

    
    ::

      {
          'Errors': [
              {
                  'DeviceId': 'string',
                  'Error': {
                      'Code': 'AccessDeniedError'|'ConflictError'|'InternalServerError'|'ResourceNotFoundError'|'ThrottlingError'|'ValidationError',
                      'Message': 'string'
                  }
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Errors** *(list) --* 

        Contains error details for each device history that failed to delete.

        
        

        - *(dict) --* 

          Contains the tracker resource details.

          
          

          - **DeviceId** *(string) --* 

            The ID of the device for this position.

            
          

          - **Error** *(dict) --* 

            Contains the batch request error details associated with the request.

            
            

            - **Code** *(string) --* 

              The error code associated with the batch request error.

              
            

            - **Message** *(string) --* 

              A message with the reason for the batch request error.

              
        
      
    
  
  **Exceptions**
  
  *   :py:class:`LocationService.Client.exceptions.InternalServerException`

  
  *   :py:class:`LocationService.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`LocationService.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`LocationService.Client.exceptions.ValidationException`

  
  *   :py:class:`LocationService.Client.exceptions.ThrottlingException`

  