Reference > How to Delete Files Copied to a Remote Machine

How to Delete Files Copied to Remote Machine

During discovery, the Data Flow Probe copies files to a remote Windows machine. For details, see Files Copied to a Remote Machine.

To configure DFM to delete files copied to the destination machine after discovery is finished:

  1. Access the globalSettings.xml file: Adapter Management > AutoDiscoveryContent > Configuration Files.

  2. Locate the removeCopiedFiles parameter.

    • true. The files are deleted.

    • false. The files are not deleted.

  3. Save the file.

To control HPCmd behavior:

  1. In the globalSettings.xml file, locate the NtcmdAgentRetention parameter.

  2. Enter one of the following:

    • 0. (The default) Unregister the service and delete the remote executable file. (Unregister: stop the service and remove it from the remote machine, so that it is no longer listed in the list of services.)

    • 1. Unregister the service, but leave the executable file on the file system.

    • 2. Leave the service running, and leave the executable file on the file system.