:doc:`Proton <../../proton>` / Client / delete_service_template

***********************
delete_service_template
***********************



.. py:method:: Proton.Client.delete_service_template(**kwargs)

  

  If no other major or minor versions of the service template exist, delete the service template.

  

  .. danger::

        This operation is deprecated and may not function as expected. This operation should not be used going forward and is only kept for the purpose of backwards compatiblity.


  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/DeleteServiceTemplate>`_  


  **Request Syntax**
  ::

    response = client.delete_service_template(
        name='string'
    )
    
  :type name: string
  :param name: **[REQUIRED]** 

    The name of the service template to delete.

    

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

    
    ::

      {
          'serviceTemplate': {
              'arn': 'string',
              'createdAt': datetime(2015, 1, 1),
              'description': 'string',
              'displayName': 'string',
              'encryptionKey': 'string',
              'lastModifiedAt': datetime(2015, 1, 1),
              'name': 'string',
              'pipelineProvisioning': 'CUSTOMER_MANAGED',
              'recommendedVersion': 'string'
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **serviceTemplate** *(dict) --* 

        The detailed data of the service template being deleted.

        
        

        - **arn** *(string) --* 

          The Amazon Resource Name (ARN) of the service template.

          
        

        - **createdAt** *(datetime) --* 

          The time when the service template was created.

          
        

        - **description** *(string) --* 

          A description of the service template.

          
        

        - **displayName** *(string) --* 

          The service template name as displayed in the developer interface.

          
        

        - **encryptionKey** *(string) --* 

          The customer provided service template encryption key that's used to encrypt data.

          
        

        - **lastModifiedAt** *(datetime) --* 

          The time when the service template was last modified.

          
        

        - **name** *(string) --* 

          The name of the service template.

          
        

        - **pipelineProvisioning** *(string) --* 

          If ``pipelineProvisioning`` is ``true``, a service pipeline is included in the service template. Otherwise, a service pipeline *isn't* included in the service template.

          
        

        - **recommendedVersion** *(string) --* 

          The recommended version of the service template.

          
    
  
  **Exceptions**
  
  *   :py:class:`Proton.Client.exceptions.ValidationException`

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

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

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

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

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

  