Redigera

Dela via


System.DeleteEncryptionKey() Method

Version: Available or changed with runtime version 1.0.

Deletes an encryption key for the current tenant.

Syntax

 System.DeleteEncryptionKey()

Note

This method can be invoked without specifying the data type name.

Example

This code example checks if encryption is configured for the tenant using the EncryptionEnabled method and if so, it performs the deletion of the encryption key.

if not EncryptionEnabled then  
  Error('Encryption has not been enabled.');  
  DeleteEncryptionKey();  

System Data Type
Get Started with AL
Developing Extensions