:doc:`Batch <../../batch>` / Client / delete_service_environment

**************************
delete_service_environment
**************************



.. py:method:: Batch.Client.delete_service_environment(**kwargs)

  

  Deletes a Service environment. Before you can delete a service environment, you must first set its state to ``DISABLED`` with the ``UpdateServiceEnvironment`` API operation and disassociate it from any job queues with the ``UpdateJobQueue`` API operation.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DeleteServiceEnvironment>`_  


  **Request Syntax**
  ::

    response = client.delete_service_environment(
        serviceEnvironment='string'
    )
    
  :type serviceEnvironment: string
  :param serviceEnvironment: **[REQUIRED]** 

    The name or ARN of the service environment to delete.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`Batch.Client.exceptions.ClientException`

  
  *   :py:class:`Batch.Client.exceptions.ServerException`

  