Skip to main content

Task VMWare - [Guest] Delete File​

The VMWare - [Guest] Delete File Task deletes one or more files in the guest operating system.

The Main settings, Flow, On error, Conditions and TimeOut tabs are the same for every Task; see Job - Tasks.

With Remote VMWare server, this Task needs a VMWare Connection with the Authentication type "Vix"; "vSphere" and "vSphere 7" do not support it (see Connection support). See also Connection - VMWare.

Connection sub tab​

Connection sub tab of the VMWare Guest Delete file(s) Task, with the Remote VMWare server and Local VMWare workstation options, Guest OS Credentials and the timeout

The Connection sub tab is the same for every VMWare Task; see Start VM for each field.

Guest OS Credentials is required: select the Credential of a user account inside the virtual machine. Before it signs in, the Task waits up to 60 seconds for VMware Tools to run in the guest, whatever the timeout says. It signs in with the VMware option that requires an interactive session, so that user must be signed in to the guest desktop.

VM Task settings sub tab​

VM Task settings sub tab of the VMWare Guest Delete file(s) Task, with the Source folder and Source file(mask) fields

  • Source folder: the folder in the guest to delete files from. Variables are replaced in this field
  • Source file(mask): a file name or mask, "*" by default. The mask uses Visual Basic pattern matching, not case-sensitive: * matches any characters, ? one character, # one digit, and [abc] one of the listed characters. Variables are replaced in this field
warning

With the default mask "*", every file in Source folder is deleted. If Source folder has a subfolder that matches the mask, the Task can fail part way, after it has deleted some files.

Output and errors​

When VMware reports an error, the Task fails.