# Name

VixDiskLib_Unlink

# Description

    VixError
    VixDiskLib_Unlink(VixDiskLibConnection connection,
                      const char *path);

Delete the virtual disk including all the extents.

# Parameters

connection
  A valid vixDiskLib connection to manipulate hosted virtual disks.
path
  Path name for the virtual disk to be deleted.

# Return Value

VIX_OK if the function succeeded, otherwise an appropriate VIX error code.

# Remarks

- VixDiskLib_Unlink() can only delete hosted disks.
- If the path refers to a parent virtual disk, the child disk will be orphaned.

# Example

       vixError = VixDiskLib_Unlink(appGlobals.connection,
                                    appGlobals.diskPath);

Copyright (C) 2007-2015 VMware, Inc. All rights reserved.