:doc:`Omics <../../omics>` / Client / delete_reference

****************
delete_reference
****************



.. py:method:: Omics.Client.delete_reference(**kwargs)

  

  Deletes a reference genome and returns a response with no body if the operation is successful. The read set associated with the reference genome must first be deleted before deleting the reference genome. After the reference genome is deleted, you can delete the reference store using the ``DeleteReferenceStore`` API operation.

   

  For more information, see `Deleting HealthOmics reference and sequence stores <https://docs.aws.amazon.com/omics/latest/dev/deleting-reference-and-sequence-stores.html>`__ in the *Amazon Web Services HealthOmics User Guide*.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/omics-2022-11-28/DeleteReference>`_  


  **Request Syntax**
  ::

    response = client.delete_reference(
        id='string',
        referenceStoreId='string'
    )
    
  :type id: string
  :param id: **[REQUIRED]** 

    The reference's ID.

    

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

    The reference's store ID.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`Omics.Client.exceptions.InternalServerException`

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

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

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

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

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

  
  *   :py:class:`Omics.Client.exceptions.RequestTimeoutException`

  