'Delete specified volume'

def _delete_volume(self, volume):

    self._alloc_location(volume, '', 1)
    vol_info = self._get_volume_info(volume['name'])
    if (vol_info['location'] == ''):
        LOG.warning('%s    not    found!', volume['name'])
        return
    args = {}
    args['method'] = 'DELETE'
    args['url'] = vol_info['location']
    args['arglist'] = {}
    args['status'] = 204
    retries = self.configuration.ise_completion_retries
    resp = self._wait_for_completion(self._help_call_method, args, retries)
    if (resp['status'] != 204):
        LOG.warning('DELETE    call    failed    for    %s!', volume['name'])
        return
    args['method'] = ''
    args['url'] = ''
    args['name'] = volume['name']
    args['status_string'] = NOTFOUND_STATUS
    retries = self.configuration.ise_completion_retries
    vol_info = self._wait_for_completion(self._help_wait_for_status, args, retries)
    if (NOTFOUND_STATUS in vol_info['string']):
        LOG.info('Successfully    deleted    %s.', volume['name'])
        return
    LOG.error('Timed    out    deleting    %s!', volume['name'])
    return
