:doc:`FSx <../../fsx>` / Client / delete_storage_virtual_machine

******************************
delete_storage_virtual_machine
******************************



.. py:method:: FSx.Client.delete_storage_virtual_machine(**kwargs)

  

  Deletes an existing Amazon FSx for ONTAP storage virtual machine (SVM). Prior to deleting an SVM, you must delete all non-root volumes in the SVM, otherwise the operation will fail.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/fsx-2018-03-01/DeleteStorageVirtualMachine>`_  


  **Request Syntax**
  ::

    response = client.delete_storage_virtual_machine(
        ClientRequestToken='string',
        StorageVirtualMachineId='string'
    )
    
  :type ClientRequestToken: string
  :param ClientRequestToken: 

    (Optional) An idempotency token for resource creation, in a string of up to 63 ASCII characters. This token is automatically filled on your behalf when you use the Command Line Interface (CLI) or an Amazon Web Services SDK.

    This field is autopopulated if not provided.

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

    The ID of the SVM that you want to delete.

    

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

    
    ::

      {
          'StorageVirtualMachineId': 'string',
          'Lifecycle': 'CREATED'|'CREATING'|'DELETING'|'FAILED'|'MISCONFIGURED'|'PENDING'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **StorageVirtualMachineId** *(string) --* 

        The ID of the SVM Amazon FSx is deleting.

        
      

      - **Lifecycle** *(string) --* 

        Describes the lifecycle state of the SVM being deleted.

        
  
  **Exceptions**
  
  *   :py:class:`FSx.Client.exceptions.BadRequest`

  
  *   :py:class:`FSx.Client.exceptions.IncompatibleParameterError`

  
  *   :py:class:`FSx.Client.exceptions.InternalServerError`

  
  *   :py:class:`FSx.Client.exceptions.StorageVirtualMachineNotFound`

  