Click or drag to resize

IVssDifferentialSoftwareSnapshotManagementDeleteUnusedDiffAreas Method

Deletes all shadow copy storage areas (also called diff areas) on the specified volume that are not in use.

Namespace:  Alphaleonis.Win32.Vss
Assembly:  AlphaVSS.Common (in AlphaVSS.Common.dll) Version: 1.4.0.0 (1.4.0.0)
Syntax
void DeleteUnusedDiffAreas(
	string diffAreaVolumeName
)

Parameters

diffAreaVolumeName
Type: SystemString

The name of the volume. This parameter is required and cannot be .

The name of the volume must be in one of the following formats:

  • The path of a volume mount point with a backslash (\)
  • A drive letter with backslash (\), for example, D:\
  • A unique volume name of the form \\?\Volume{GUID}\ (where GUID is the unique global identifier of the volume) with a backslash (\)

Exceptions
ExceptionCondition
UnauthorizedAccessExceptionCaller does not have sufficient backup privileges or is not an administrator.
OutOfMemoryExceptionThe caller is out of memory or other system resources.
ArgumentExceptionOne of the parameter values is not valid.
ArgumentNullExceptionOne of the arguments was
NotImplementedExceptionThe provider for the volume does not support shadow copy protection.
VssProviderVetoExceptionExpected provider error. The provider logged the error in the event log.
VssObjectNotFoundExceptionThe specified volume was not found.
Remarks

Unused shadow copy storage area files are found on storage area volumes when the associated original volume is offline due to a protection fault. In certain cases, the original volume may be permanently lost, and calling the DeleteUnusedDiffAreas(String) method is the only way to recover the abandoned storage area space.

Note Note

Windows XP, Windows Server 2003 and Windows Vista: This method requires Windows Server 2008.

See Also