'Deallocate or delete a volume.
:param array: the array serial number
:param device_id: volume device id'

def delete_volume(self, array, device_id):

    payload = {'editVolumeActionParam': {'freeVolumeParam': {'free_volume': 'true'}}}
    try:
        self._modify_volume(array, device_id, payload)
    except Exception as e:
        LOG.warning('Deallocate    volume    failed    with    %(e)s.Attempting    delete.', {'e': e})
        self.delete_resource(array, SLOPROVISIONING, 'volume', device_id)
