Search
Plugins > vCenter Server 5.5.3 > VcGuestFileManager > deleteDirectoryInGuest

Method deleteDirectoryInGuest(VcVirtualMachine vm, VcGuestAuthentication auth, String directoryPath, boolean recursive)

Deletes a directory in the guest OS.

Returns

void

Arguments

Name Type Description
vm VcVirtualMachine Virtual Machine to perform the operation on.
auth VcGuestAuthentication The guest authentication data. See <a href="VcGuestAuthentication.html">VcGuestAuthentication</a>.
directoryPath String The complete path to the directory to be deleted.
recursive boolean If true, all subdirectories are also deleted. If false, the directory must be empty for the operation to succeed.