# Reg_DeleteKeyX64

> Deletes specified key in 64 bit registry from a 32 bit context. Fails if any sub key exists.

Source: https://docs.capaone.com/capainstaller/vb-scripting-library/registry-functions/reg-deletekeyx64/  
Product: CapaInstaller — a separate CapaSystems product; do not apply this page to any other.

### Description

Deletes specified key in 64 bit registry from a 32 bit context. Fails if any sub key exists. Recommended for safe Registry-handling.

### Syntax

Reg_DeleteKeyX64(sHandle, sKey) as Boolean

### Parameters

#### sHandle (String)

HKEY-handle

#### sKey (String)

Subkey to delete

### Example

**VBScript**

```vb
If bStatus Then bStatus = Reg_DeleteKeyX64("HKLM", "Software\KeyName")

```

[Scripting Guidelines](/capainstaller/vb-scripting-library/scripting-guidelines/)

### Related functions

[Registry Functions](/capainstaller/vb-scripting-library/registry-functions/) [Constants](/capainstaller/vb-scripting-library/addendum/constants/) [Package Property](/capainstaller/vb-scripting-library/addendum/package-property/) [Variables](/capainstaller/vb-scripting-library/addendum/variables/)
