REGISTRY_DELETE_KEY

Use

Deletes a registry key and all the registry keys and values under this the specified registry key.

Argument

IMPORTING] root TYPE I

Registry root key to use.

Possible values:

  • HKEY_CLASSES_ROOT (0)

    registry key in HKEY_CLASSES_ROOT section should be deleted

  • HKEY_CURRENT_USER (1)

    registry key in HKEY_CURRENT_USER section should be deleted

  • HKEY_LOCAL_MACHINE (2)

    registry key in HKEY_LOCAL_MACHINE section should be deleted

  • HKEY_USERS (3)

    registry key in HKEY_USERS section should be deleted

[IMPORTING] key TYPE STRING

String containing name (including path from root key) to registry key to be deleted.

[EXPORTING] rc TYPE I

Return code specifying whether the registry key was deleted successfully or not.

Possible values:

  • 0

    registry key could not be deleted

  • 1

    registry key was deleted successfully

Exceptions

BAD_PARAMETER

This exception is raised if no registry key has been specified.

CNTL_ERROR

Thrown if neither Windows nor Java nor Web GUI is being used or the corresponding front end method could not be called.

ERROR_NO_GUI

Currently not used.

NOT_SUPPORTED_BY_GUI

Raised if Java or Web GUI is being used.

REGISTRY_DELETE_KEY_FAILED

Currently not used.