AWS SDK for .NET Documentation
DetachVolume Method (request)
AmazonAmazon.EC2AmazonEC2ClientDetachVolume(DetachVolumeRequest) Did this page help you?   Yes   No    Tell us about it...
Detaches an Amazon EBS volume from an instance.
Declaration Syntax
C#
public DetachVolumeResponse DetachVolume(
	DetachVolumeRequest request
)
Parameters
request (DetachVolumeRequest)
Detach Volume request
Return Value
Detach Volume Response from the service
Remarks
For more information about Amazon EBS, go to the Amazon Elastic Compute Cloud Developer Guide. Important - make sure to unmount any file systems on the device within your operating system before detaching the volume. Failure to unmount file systems, or otherwise properly release the device from use, can result in lost data and will corrupt the file system.
Exceptions

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.60.0 (1.5.60.0)