The Delete Function

Keys and values can be deleted from the registry file using the delete function.

The command syntax is:

fileregedit [-f reg_file] delete user path name class
  • There are no optional arguments to the delete function.
  • The item which is to be deleted must be specified.
  • The class argument must be either KEY or VALUE, since it is possible to have both a key and a value with the same name contained in the same path.

For example, to delete the Choice value for the rename function, the command is:

fileregedit delete phoebe /XY/Software/Web Choice VALUE

Sample output of the above command:

# fileregedit delete phoebe /XY/Software/Web Choice VALUE

1 item deleted

#

When a key is deleted, everything contained within the key is also deleted.

For example, if the top level SDL KEY was deleted with this command: fileregedit delete phoebe / SDL KEY

Three items are deleted:

# fileregedit delete phoebe / SDL KEY

3 items deleted

#

And the registry file would be empty. For example, the fileregedit command for list phoebe shows no items found:

# fileregedit list phoebe

0 items found

#