'Detaches a volume from a node.
:param volume: Volume to be detached
:type volume: :class:`.StorageVolume`
:rtype: ``bool``'

def detach_volume(self, volume):

    attr = {'type': 'detach', 'volume_id': volume.id, 'region': volume.extra['region_slug']}
    responses = []
    for droplet_id in volume.extra['droplet_ids']:
        attr['droplet_id'] = droplet_id
        res = self.connection.request('/v2/volumes/actions', data=json.dumps(attr), method='POST')
        responses.append(res)
    return all([(r.status == httplib.ACCEPTED) for r in responses])
