# DeleteTaskAcl

Deletes the explicit ACL defined in Qlik Enterprise Manager for the specified task. Inherited ACLs are not affected by this method. Once the explicit ACL is deleted from the task, all ACLs will be automatically inherited from the task's ancestors.

Required User Role: See [Required Enterprise Manager permissions](https://help.qlik.com/en-US/enterprise-manager/May2026/Content/EnterpriseManager/EnterpriseManager_APIGuide/Introduction/AEMPermissions.htm).

## Syntax

`public void DeleteTaskAcl(` `string server` `string task` `);`

## Parameters

Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| server | string | The name of the server with the task ACL. |
| task | string | The name of the task whose ACL needs to be deleted. |

## Return values

N/A

## Errors

All of the [general errors](https://help.qlik.com/en-US/enterprise-manager/May2026/Content/EnterpriseManager/EnterpriseManager_APIGuide/NetAPI/error_handling.htm) as well as the errors listed in the table below.

Error responses

| Error | Message | Description |
| --- | --- | --- |
| AEM\_DELETE\_TASK\_ACL\_INNER\_ERR | Failed to delete ACL of task "{task}".<br><br>Error: "{message}". | Returned if Qlik Enterprise Manager encounters an error/exception when trying to delete the task's ACL. |
| AEM\_TASK\_HAS\_NO\_ACL | ACL for task "{task}" could not be found. | Returned when the specified task has no explicit ACL defined. |