# DestroyApp Method

## Overloads

| [DestroyApp(String)](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IHub.DestroyApp.htm#Qlik_Engine_IHub_DestroyApp_System_String_) |  | Deletes an app from the Qlik Sense repository or from the file system.<br><br>Qlik Sense Enterprise<br><br>In addition to being removed from the repository, the app is removed from the directory as well:<br><br><br>*&lt;installation\_directory&gt;\Qlik\Sense\Apps*<br><br>The default installation directory is `ProgramData`.<br><br>Qlik Sense Desktop<br><br>The app is deleted from the directory `%userprofile%\Documents\Qlik\ \Apps`.<br><br>Logs<br><br>When this method is called, audit activity logs are produced to track the user activity.<br><br>In the case of errors, both audit activity logs and system services logs are produced.<br><br>The log files are named as follows:<br><br>Please refer to Engine API reference for table definition.<br><br>Where to find the log files<br><br>The location of the log files depends on whether you have installed Qlik Sense Enterprise or Qlik Sense Desktop.<br><br>Please refer to Engine API reference for table definition. |
| --- | --- | --- |

[](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IHub.DestroyApp.htm) [](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IHub.DestroyApp.htm)

## DestroyApp(String)

Deletes an app from the Qlik Sense repository or from the file system.

#### Qlik Sense Enterprise

In addition to being removed from the repository, the app is removed from the directory as well:

*&lt;installation\_directory&gt;\Qlik\Sense\Apps*

The default installation directory is `ProgramData`.

#### Qlik Sense Desktop

The app is deleted from the directory `%userprofile%\Documents\Qlik\ \Apps`.

#### Logs

When this method is called, audit activity logs are produced to track the user activity.

In the case of errors, both audit activity logs and system services logs are produced.

The log files are named as follows:

Please refer to Engine API reference for table definition.

#### Where to find the log files

The location of the log files depends on whether you have installed Qlik Sense Enterprise or Qlik Sense Desktop.

Please refer to Engine API reference for table definition.

### Declaration

```

          [QixName("DeleteApp")]
bool DestroyApp([QixName("qAppId")] string appId)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| System.String | appId | Identifier of the app to delete.<br>In Qlik Sense Enterprise, the identifier of the app is a GUID in the Qlik Sense repository.<br>In Qlik Sense Desktop, the identifier of the app is the name of the app, as defined in the apps folder `%userprofile%\Documents\Qlik\Sense\Apps`. |

### Returns

| Type | Description |
| --- | --- |
| System.Boolean |  |

### Remarks

The operation is successful if **qSuccess** is set to true.