'Detach this EBS volume from an EC2 instance.
:type force: bool
:param force: Forces detachment if the previous detachment
attempt did not occur cleanly.  This option can lead to
data loss or a corrupted file system. Use this option only
as a last resort to detach a volume from a failed
instance. The instance will not have an opportunity to
flush file system caches nor file system meta data. If you
use this option, you must perform file system check and
repair procedures.
:rtype: bool
:return: True if successful'

def detach(self, force=False, dry_run=False):

    instance_id = None
    if self.attach_data:
        instance_id = self.attach_data.instance_id
    device = None
    if self.attach_data:
        device = self.attach_data.device
    return self.connection.detach_volume(self.id, instance_id, device, force, dry_run=dry_run)
