Partager via


DELETEENCRYPTIONKEY

Deletes the encryption key for the current Dynamics NAV tenant.

Important

Use the System Restore permission set in Dynamics NAV to allow importing the encryption key.

Syntax

DELETEENCRYPTIONKEY()  

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.

IF NOT ENCRYPTIONENABLED THEN  
  ERROR('Encryption has not been enabled.');  
  DELETEENCRYPTIONKEY();  

See Also

System
Technical Reference
C/SIDE Reference Guide