# DeleteServerAcl

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

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

## Syntax

`public void DeleteServerAcl(` `string server` `);`

## Parameters

Parameters

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

## Return values

N/A

## Errors

All of the [general errors](https://help.qlik.com/en-US/enterprise-manager/November2024/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\_SERVER\_ACL\_INNER\_ERR | Failed to delete ACL of server "{server}".<br><br>Error: "{message}". | Returned if Qlik Enterprise Manager encounters an error/exception when trying to delete the server's ACL. |
| AEM\_SERVER\_HAS\_NO\_ACL | ACL for server "{server}" could not be found. | Returned when the specified server has no explicit ACL defined. |