# rotateTDEKey {#rotatetdekey}

**Parent topic:**[Functions](../../Functions/category.md)

## Syntax {#syntax}

`rotateTDEKey(masterKeyPath)`

## Arguments {#arguments}

**masterKeyPath** is a string specifying the path to the TDE key file.

## Details {#details}

\[Linux Only\] This function enables TDE key rotation of transparent data encryption. It must be executed by an administrator on the controller.

It returns true if successful. The system uses the new key to re-encrypt the table keys of all encrypted tables and updates the table header files. If an error occurs, check whether the key path is correct and if the file adheres to the required key format.

## Examples {#examples}

``` {#codeblock_u5q_hks_c2c}
enableTDEKey(path/to/newKey)
```

