:doc:`SFN <../../stepfunctions>` / Client / delete_state_machine_version

****************************
delete_state_machine_version
****************************



.. py:method:: SFN.Client.delete_state_machine_version(**kwargs)

  

  Deletes a state machine `version <https://docs.aws.amazon.com/step-functions/latest/dg/concepts-state-machine-version.html>`__. After you delete a version, you can't call  StartExecution using that version's ARN or use the version with a state machine `alias <https://docs.aws.amazon.com/step-functions/latest/dg/concepts-state-machine-alias.html>`__.

   

  .. note::

    

    Deleting a state machine version won't terminate its in-progress executions.

    

   

  .. note::

    

    You can't delete a state machine version currently referenced by one or more aliases. Before you delete a version, you must either delete the aliases or update them to point to another state machine version.

    

   

  **Related operations:**

   

  
  *  PublishStateMachineVersion
   
  *  ListStateMachineVersions
  

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/DeleteStateMachineVersion>`_  


  **Request Syntax**
  ::

    response = client.delete_state_machine_version(
        stateMachineVersionArn='string'
    )
    
  :type stateMachineVersionArn: string
  :param stateMachineVersionArn: **[REQUIRED]** 

    The Amazon Resource Name (ARN) of the state machine version to delete.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`SFN.Client.exceptions.ValidationException`

  
  *   :py:class:`SFN.Client.exceptions.InvalidArn`

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

  