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

******************
delete_environment
******************



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

  

  Deletes an Amazon Web Services Migration Hub Refactor Spaces environment. Before you can delete an environment, you must first delete any applications and services within the environment.

  

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


  **Request Syntax**
  ::

    response = client.delete_environment(
        EnvironmentIdentifier='string'
    )
    
  :type EnvironmentIdentifier: string
  :param EnvironmentIdentifier: **[REQUIRED]** 

    The ID of the environment.

    

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

    
    ::

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

    

    - *(dict) --* 
      

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

        The Amazon Resource Name (ARN) of the environment.

        
      

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

        The unique identifier of the environment.

        
      

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

        A timestamp that indicates when the environment was last updated.

        
      

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

        The name of the environment.

        
      

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

        The current state of the environment.

        
  
  **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`

  