:doc:`MigrationHubRefactorSpaces <../../migration-hub-refactor-spaces>` / Client / delete_service

**************
delete_service
**************



.. py:method:: MigrationHubRefactorSpaces.Client.delete_service(**kwargs)

  

  Deletes an Amazon Web Services Migration Hub Refactor Spaces service.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/migration-hub-refactor-spaces-2021-10-26/DeleteService>`_  


  **Request Syntax**
  ::

    response = client.delete_service(
        ApplicationIdentifier='string',
        EnvironmentIdentifier='string',
        ServiceIdentifier='string'
    )
    
  :type ApplicationIdentifier: string
  :param ApplicationIdentifier: **[REQUIRED]** 

    Deletes a Refactor Spaces service.

     

    .. note::

      

      The ``RefactorSpacesSecurityGroup`` security group must be removed from all Amazon Web Services resources in the virtual private cloud (VPC) prior to deleting a service with a URL endpoint in a VPC.

      

    

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

    The ID of the environment that the service is in.

    

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

    The ID of the service to delete.

    

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

    
    ::

      {
          'ApplicationId': 'string',
          'Arn': 'string',
          'EnvironmentId': 'string',
          'LastUpdatedTime': datetime(2015, 1, 1),
          'Name': 'string',
          'ServiceId': 'string',
          'State': 'CREATING'|'ACTIVE'|'DELETING'|'FAILED'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **ApplicationId** *(string) --* 

        The ID of the application that the service is in.

        
      

      - **Arn** *(string) --* 

        The Amazon Resource Name (ARN) of the service.

        
      

      - **EnvironmentId** *(string) --* 

        The unique identifier of the environment.

        
      

      - **LastUpdatedTime** *(datetime) --* 

        A timestamp that indicates when the service was last updated.

        
      

      - **Name** *(string) --* 

        The name of the service.

        
      

      - **ServiceId** *(string) --* 

        The unique identifier of the service.

        
      

      - **State** *(string) --* 

        The current state of the service.

        
  
  **Exceptions**
  
  *   :py:class:`MigrationHubRefactorSpaces.Client.exceptions.ResourceNotFoundException`

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

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

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

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

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

  