:doc:`SageMaker <../../sagemaker>` / Client / delete_app

**********
delete_app
**********



.. py:method:: SageMaker.Client.delete_app(**kwargs)

  

  Used to stop and delete an app.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteApp>`_  


  **Request Syntax**
  ::

    response = client.delete_app(
        DomainId='string',
        UserProfileName='string',
        SpaceName='string',
        AppType='JupyterServer'|'KernelGateway'|'DetailedProfiler'|'TensorBoard'|'CodeEditor'|'JupyterLab'|'RStudioServerPro'|'RSessionGateway'|'Canvas',
        AppName='string'
    )
    
  :type DomainId: string
  :param DomainId: **[REQUIRED]** 

    The domain ID.

    

  
  :type UserProfileName: string
  :param UserProfileName: 

    The user profile name. If this value is not set, then ``SpaceName`` must be set.

    

  
  :type SpaceName: string
  :param SpaceName: 

    The name of the space. If this value is not set, then ``UserProfileName`` must be set.

    

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

    The type of app.

    

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

    The name of the app.

    

  
  
  :returns: None
  **Exceptions**
  
  *   :py:class:`SageMaker.Client.exceptions.ResourceNotFound`

  
  *   :py:class:`SageMaker.Client.exceptions.ResourceInUse`

  