Deletes the encryption key for the current Microsoft Dynamics NAV tenant.
|  Important | 
|---|
| Use the System Restore permission set in Microsoft Dynamics NAV to allow importing the encryption key. | 
| DELETEENCRYPTIONKEY() | 
 Example
Example
This code example checks if encryption is configured for the tenant using the ENCRYPTIONENABLED function and if so, it performs the deletion of the encryption key.
|  Copy Code | |
|---|---|
| IF NOT ENCRYPTIONENABLED THEN
  ERROR('Encryption has not been enabled.');
  DELETEENCRYPTIONKEY();
 | |





