:doc:`IoT <../../iot>` / Client / delete_command_execution

************************
delete_command_execution
************************



.. py:method:: IoT.Client.delete_command_execution(**kwargs)

  

  Delete a command execution.

   

  .. note::

    

    Only command executions that enter a terminal state can be deleted from your account.

    

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/iot-2015-05-28/DeleteCommandExecution>`_  


  **Request Syntax**
  ::

    response = client.delete_command_execution(
        executionId='string',
        targetArn='string'
    )
    
  :type executionId: string
  :param executionId: **[REQUIRED]** 

    The unique identifier of the command execution that you want to delete from your account.

    

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

    The Amazon Resource Number (ARN) of the target device for which you want to delete command executions.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`IoT.Client.exceptions.ConflictException`

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

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

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

  